mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 03:03:50 +01:00
Turn g_dpi into a float, because why not
This commit is contained in:
1 parent
d44309405a
commit
11c75476f7
5 files changed
+10
-25
No files matched your search
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user