mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Implement DPI scaling for Windows (#9586)
This commit is contained in:
parent
5cc06e4748
commit
40df3931d8
5 changed files with 69 additions and 25 deletions
|
@ -110,10 +110,5 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
GUI related things
|
||||
*/
|
||||
|
||||
// TODO: implement dpi-based scaling for windows and remove this hack
|
||||
#if defined(_WIN32)
|
||||
#define TTF_DEFAULT_FONT_SIZE (18)
|
||||
#else
|
||||
#define TTF_DEFAULT_FONT_SIZE (16)
|
||||
#endif
|
||||
#define DEFAULT_FONT_SIZE (10)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue