Turn g_dpi into a float, because why not

This commit is contained in:
Henrik Rydgård committed 2017-08-07 12:16:08 +02:00
1 parent d44309405a
commit 11c75476f7
5 files changed
+10 -25

No files matched your search

+2 -2
View File
@@ -141,10 +141,10 @@ static bool IsWindowSmall(int pixelWidth, int pixelHeight) {
bool UpdateScreenScale(int width, int height) {
bool smallWindow;
#ifdef _WIN32
g_dpi = System_GetPropertyInt(SYSPROP_DISPLAY_DPI);
g_dpi = (float)System_GetPropertyInt(SYSPROP_DISPLAY_DPI);
g_dpi_scale = 96.0f / g_dpi;
#else
g_dpi = 96;
g_dpi = 96.0f;
g_dpi_scale = 1.0f;
#endif
g_dpi_scale_real = g_dpi_scale;