mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Small fixes, mostly dupicated code
(cherry picked from commit 856a8226a5)
This commit is contained in:
@@ -1923,10 +1923,6 @@ public:
|
||||
zipClose(final_apk, NULL);
|
||||
unzClose(tmp_unaligned);
|
||||
|
||||
if (err) {
|
||||
return err;
|
||||
}
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -1165,7 +1165,7 @@ int OS_X11::get_screen_dpi(int p_screen) const {
|
||||
int height_mm = DisplayHeightMM(x11_display, p_screen);
|
||||
double xdpi = (width_mm ? sc.width / (double)width_mm * 25.4 : 0);
|
||||
double ydpi = (height_mm ? sc.height / (double)height_mm * 25.4 : 0);
|
||||
if (xdpi || xdpi)
|
||||
if (xdpi || ydpi)
|
||||
return (xdpi + ydpi) / (xdpi && ydpi ? 2 : 1);
|
||||
|
||||
//could not get dpi
|
||||
|
||||
Reference in New Issue
Block a user