Fix font handling: use const Font* for get_current_font and all GUI font save/restore logic

This commit is contained in:
Adolfo Reyna
2026-01-31 09:45:29 -05:00
parent 76a74477a7
commit 3a1e278c4c
2 changed files with 29 additions and 29 deletions

View File

@@ -111,7 +111,7 @@ public:
// Font management
void set_font(const Font* font);
void set_text_color(bool color);
Font get_current_font() const { return *current_font; }
const Font* get_current_font() const { return current_font; }
bool get_current_text_color() const { return text_color; }
int get_width() const { return V_WIDTH; }
int get_height() const { return V_HEIGHT; }