Browse Source

CaretComponent optimisation.

tags/2021-05-28
jules 11 years ago
parent
commit
0149aab09d
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      modules/juce_gui_basics/keyboard/juce_CaretComponent.cpp

+ 3
- 1
modules/juce_gui_basics/keyboard/juce_CaretComponent.cpp 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()


Loading…
Cancel
Save