mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-25 11:19:03 +01:00
Blackberry: Match up with Android's DPI settings.
This commit is contained in:
1 parent
26eaba2157
commit
7eacb18ddd
1 file changed
+3
-1
@@ -77,10 +77,12 @@ void BlackberryMain::startDisplays() {
|
||||
}
|
||||
#ifdef ARM
|
||||
screen_get_display_property_iv(screen_dpy[0], SCREEN_PROPERTY_DPI, &dpi); // Only internal display has DPI
|
||||
// We only use dpi to calculate the width. Smaller aspect ratios have giant text despite high DPI.
|
||||
dpi = dpi * (((float)displays[0].width/(float)displays[0].height) / (16.0/9.0)); // Adjust to 16:9
|
||||
#else
|
||||
dpi = 340.0f;
|
||||
#endif
|
||||
g_dpi_scale = ((pixel_xres == pixel_yres) ? 300.0f : 213.6f) / dpi;
|
||||
g_dpi_scale = 210.0f / dpi;
|
||||
switchDisplay(screen_ui);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user