mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 16:17:45 +00:00
FontEditor: Remove weird focus rects and optimize repaint while drawing.
I added focus rects to these widgets because I had just started working on focus support and I was excited but it doesn't really make sense for these things to have focus rects. :^) While I was here I also optimized the repaint code to only update the edited glyph in the glyph map when editing its pixels.
This commit is contained in:
parent
ac6c7d3e19
commit
f2580dcfeb
5 changed files with 15 additions and 14 deletions
|
@ -15,7 +15,7 @@ public:
|
|||
Font& font() { return *m_font; }
|
||||
const Font& font() const { return *m_font; }
|
||||
|
||||
Function<void()> on_glyph_altered;
|
||||
Function<void(byte)> on_glyph_altered;
|
||||
|
||||
private:
|
||||
virtual void paint_event(GPaintEvent&) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue