mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-17 00:44:19 +00:00
CaretComponent optimisation.
This commit is contained in:
parent
cbe2777656
commit
0149aab09d
1 changed files with 3 additions and 1 deletions
|
|
@ -25,6 +25,7 @@
|
|||
CaretComponent::CaretComponent (Component* const keyFocusOwner)
|
||||
: owner (keyFocusOwner)
|
||||
{
|
||||
setPaintingIsUnclipped (true);
|
||||
setInterceptsMouseClicks (false, false);
|
||||
}
|
||||
|
||||
|
|
@ -34,7 +35,8 @@ CaretComponent::~CaretComponent()
|
|||
|
||||
void CaretComponent::paint (Graphics& g)
|
||||
{
|
||||
g.fillAll (findColour (caretColourId, true));
|
||||
g.setColour (findColour (caretColourId, true));
|
||||
g.fillRect (getLocalBounds());
|
||||
}
|
||||
|
||||
void CaretComponent::timerCallback()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue