From 9b184fc1cb31cc31e4babe668adb58a8d8ec4bd3 Mon Sep 17 00:00:00 2001 From: thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> Date: Mon, 29 Nov 2021 10:52:50 -0500 Subject: [PATCH] FontEditor: Clean up GlyphMapWidget header Fixes minor organizational inconsistency and zeroes initializations for rows and columns as the previous values haven't been meaningful since the map was converted to a scrollable widget. No functional changes. --- Userland/Applications/FontEditor/GlyphMapWidget.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Userland/Applications/FontEditor/GlyphMapWidget.h b/Userland/Applications/FontEditor/GlyphMapWidget.h index 18f26155fc..6face466a7 100644 --- a/Userland/Applications/FontEditor/GlyphMapWidget.h +++ b/Userland/Applications/FontEditor/GlyphMapWidget.h @@ -18,7 +18,8 @@ public: int selected_glyph() const { return m_selected_glyph; } void set_selected_glyph(int); - void scroll_to_glyph(int glyph); + void scroll_to_glyph(int); + void update_glyph(int); int rows() const { return m_rows; } int columns() const { return m_columns; } @@ -26,8 +27,6 @@ public: Gfx::BitmapFont& font() { return *m_font; } const Gfx::BitmapFont& font() const { return *m_font; } - void update_glyph(int); - Function on_glyph_selected; private: @@ -41,8 +40,8 @@ private: RefPtr m_font; int m_glyph_count { 0x110000 }; - int m_columns { 32 }; - int m_rows { 12 }; + int m_columns { 0 }; + int m_rows { 0 }; int m_horizontal_spacing { 2 }; int m_vertical_spacing { 2 }; int m_selected_glyph { 0 };