Global: Fix some type conversion warnings.

Hidden by some warning disables.
This commit is contained in:
Unknown W. Brackets committed 2022-01-30 16:09:33 -08:00
1 parent 5e185f3d87
commit 3df6cb704f
18 files changed
+41 -39

No files matched your search

+2 -2
View File
@@ -188,8 +188,8 @@ bool UpdateScreenScale(int width, int height) {
pixel_in_dps_x = 1.0f / g_dpi_scale_x;
pixel_in_dps_y = 1.0f / g_dpi_scale_y;
int new_dp_xres = width * g_dpi_scale_x;
int new_dp_yres = height * g_dpi_scale_y;
int new_dp_xres = (int)(width * g_dpi_scale_x);
int new_dp_yres = (int)(height * g_dpi_scale_y);
bool dp_changed = new_dp_xres != dp_xres || new_dp_yres != dp_yres;
bool px_changed = pixel_xres != width || pixel_yres != height;