mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-27 16:23:35 +01:00
Fix new UI at 1x resolution.
This commit is contained in:
1 parent
22ebe76f33
commit
cf92decff4
1 file changed
+6
-4
+6
-4
@@ -95,17 +95,19 @@ void Core_WaitInactive(int milliseconds)
|
||||
void UpdateScreenScale() {
|
||||
dp_xres = PSP_CoreParameter().pixelWidth;
|
||||
dp_yres = PSP_CoreParameter().pixelHeight;
|
||||
pixel_xres = PSP_CoreParameter().pixelWidth;
|
||||
pixel_yres = PSP_CoreParameter().pixelHeight;
|
||||
g_dpi = 72;
|
||||
g_dpi_scale = 1.0f;
|
||||
#ifdef _WIN32
|
||||
if (g_Config.iWindowZoom == 1)
|
||||
{
|
||||
dp_xres *= 2;
|
||||
dp_yres *= 2;
|
||||
g_dpi_scale = 2.0f;
|
||||
}
|
||||
else
|
||||
#endif
|
||||
pixel_xres = PSP_CoreParameter().pixelWidth;
|
||||
pixel_yres = PSP_CoreParameter().pixelHeight;
|
||||
g_dpi = 72;
|
||||
g_dpi_scale = 1.0f;
|
||||
pixel_in_dps = (float)pixel_xres / dp_xres;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user