Skip to content

Commit f67e70b

Browse files
authored
Fix typecast warnings in rcore (#5466)
1 parent 9fe51a6 commit f67e70b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/platforms/rcore_desktop_glfw.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@ void ToggleFullscreen(void)
227227
if (FLAG_IS_SET(CORE.Window.flags, FLAG_WINDOW_HIGHDPI))
228228
{
229229
Vector2 scaleDpi = GetWindowScaleDPI();
230-
CORE.Window.screen.width *= scaleDpi.x;
231-
CORE.Window.screen.height *= scaleDpi.y;
230+
CORE.Window.screen.width = (unsigned int)(CORE.Window.screen.width * scaleDpi.x);
231+
CORE.Window.screen.height = (unsigned int)(CORE.Window.screen.height * scaleDpi.y);
232232
}
233233
#endif
234234

@@ -306,8 +306,8 @@ void ToggleBorderlessWindowed(void)
306306
if (FLAG_IS_SET(CORE.Window.flags, FLAG_WINDOW_HIGHDPI))
307307
{
308308
Vector2 scaleDpi = GetWindowScaleDPI();
309-
CORE.Window.screen.width *= scaleDpi.x;
310-
CORE.Window.screen.height *= scaleDpi.y;
309+
CORE.Window.screen.width = (unsigned int)(CORE.Window.screen.width * scaleDpi.x);
310+
CORE.Window.screen.height = (unsigned int)(CORE.Window.screen.height * scaleDpi.y);
311311
}
312312
#endif
313313

0 commit comments

Comments
 (0)