1
0
Fork 0
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:
jules 2013-08-06 16:26:53 +01:00
parent cbe2777656
commit 0149aab09d

View file

@ -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()