mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Update the undermaintained Qt port to use the new DPI Recalculate
This commit is contained in:
parent
7a78124a3b
commit
e791e31528
1 changed files with 2 additions and 8 deletions
|
@ -840,15 +840,9 @@ int main(int argc, char *argv[])
|
|||
if (res.width() < res.height())
|
||||
res.transpose();
|
||||
|
||||
g_display.pixel_xres = res.width();
|
||||
g_display.pixel_yres = res.height();
|
||||
|
||||
// We assume physicalDotsPerInchY is the same as PerInchX.
|
||||
g_display.dpi_scale_real = screen->logicalDotsPerInchX() / screen->physicalDotsPerInchX();
|
||||
|
||||
g_display.dpi_scale = g_display.dpi_scale_real;
|
||||
g_display.dp_xres = (int)(g_display.pixel_xres * g_display.dpi_scale);
|
||||
g_display.dp_yres = (int)(g_display.pixel_yres * g_display.dpi_scale);
|
||||
float dpi_scale = screen->logicalDotsPerInchX() / screen->physicalDotsPerInchX();
|
||||
g_display.Recalculate(res.width(), res.height(), dpi_scale, 1.0f);
|
||||
|
||||
refreshRate = screen->refreshRate();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue