Fix font handling: use const Font* for get_current_font and all GUI font save/restore logic
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user