mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-10 21:48:46 +01:00
Fix typecast warnings in rcore (#5466)
This commit is contained in:
@ -227,8 +227,8 @@ void ToggleFullscreen(void)
|
|||||||
if (FLAG_IS_SET(CORE.Window.flags, FLAG_WINDOW_HIGHDPI))
|
if (FLAG_IS_SET(CORE.Window.flags, FLAG_WINDOW_HIGHDPI))
|
||||||
{
|
{
|
||||||
Vector2 scaleDpi = GetWindowScaleDPI();
|
Vector2 scaleDpi = GetWindowScaleDPI();
|
||||||
CORE.Window.screen.width *= scaleDpi.x;
|
CORE.Window.screen.width = (unsigned int)(CORE.Window.screen.width * scaleDpi.x);
|
||||||
CORE.Window.screen.height *= scaleDpi.y;
|
CORE.Window.screen.height = (unsigned int)(CORE.Window.screen.height * scaleDpi.y);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -306,8 +306,8 @@ void ToggleBorderlessWindowed(void)
|
|||||||
if (FLAG_IS_SET(CORE.Window.flags, FLAG_WINDOW_HIGHDPI))
|
if (FLAG_IS_SET(CORE.Window.flags, FLAG_WINDOW_HIGHDPI))
|
||||||
{
|
{
|
||||||
Vector2 scaleDpi = GetWindowScaleDPI();
|
Vector2 scaleDpi = GetWindowScaleDPI();
|
||||||
CORE.Window.screen.width *= scaleDpi.x;
|
CORE.Window.screen.width = (unsigned int)(CORE.Window.screen.width * scaleDpi.x);
|
||||||
CORE.Window.screen.height *= scaleDpi.y;
|
CORE.Window.screen.height = (unsigned int)(CORE.Window.screen.height * scaleDpi.y);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user