diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-03-25 08:29:53 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-03-26 07:30:39 +0000 |
commit | da7a32c6ea92242c99412c2702ad59df36007de4 (patch) | |
tree | 79bea6d27c808d4fe5ac63941f8cbb52afb34552 /src/gui/gui.h | |
parent | 4091bd9568e5aff4a1f24416d26da567a2c076ad (diff) | |
download | mana-da7a32c6ea92242c99412c2702ad59df36007de4.tar.gz mana-da7a32c6ea92242c99412c2702ad59df36007de4.tar.bz2 mana-da7a32c6ea92242c99412c2702ad59df36007de4.tar.xz mana-da7a32c6ea92242c99412c2702ad59df36007de4.zip |
Added support for HiDPI fonts
* TrueTypeFont class now takes into account the graphics scale, in order
to render an appropriate higher-resolution texture.
* Removed TrueTypeFont::fontCounter, since TTF_Init/TTF_Quit already
keep a counter.
* Avoid copying the rendered string needlessly, when it already exists
in the cache. Avoid another copy, when inserting a new chunk into the
cache.
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r-- | src/gui/gui.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/gui.h b/src/gui/gui.h index b731514f..29dcdef2 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -86,8 +86,10 @@ class Gui : public gcn::Gui /** * Called when the application window has been resized. + * + * Returns whether the top widget changed size. */ - void videoResized(int width, int height); + bool videoResized(int width, int height); gcn::FocusHandler *getFocusHandler() const { return mFocusHandler; } |