mirror of https://github.com/stella-emu/stella.git
disabled focus handling for ColorWidget (reduces draws)
This commit is contained in:
parent
f37f841750
commit
47acf30fba
|
@ -31,7 +31,7 @@ ColorWidget::ColorWidget(GuiObject* boss, const GUI::Font& font,
|
|||
_framed{framed},
|
||||
_cmd{cmd}
|
||||
{
|
||||
_flags = Widget::FLAG_ENABLED | Widget::FLAG_CLEARBG | Widget::FLAG_RETAIN_FOCUS;
|
||||
_flags = Widget::FLAG_ENABLED | Widget::FLAG_CLEARBG;
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
|
|
@ -45,6 +45,8 @@ class ColorWidget : public Widget, public CommandSender
|
|||
void setCrossed(bool enable);
|
||||
|
||||
protected:
|
||||
void handleMouseEntered() override { }
|
||||
void handleMouseLeft() override { }
|
||||
void drawWidget(bool hilite) override;
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Reference in New Issue