Sfoglia il codice sorgente

Fix typecast warnings in rcore (#5466)

pull/5469/head
Jeffery Myers 4 settimane fa
committed by GitHub
parent
commit
f67e70bb47
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: B5690EEEBB952194
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. +4
    -4
      src/platforms/rcore_desktop_glfw.c

+ 4
- 4
src/platforms/rcore_desktop_glfw.c Vedi File

@ -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.height *= scaleDpi.y;
CORE.Window.screen.width = (unsigned int)(CORE.Window.screen.width * scaleDpi.x);
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.height *= scaleDpi.y;
CORE.Window.screen.width = (unsigned int)(CORE.Window.screen.width * scaleDpi.x);
CORE.Window.screen.height = (unsigned int)(CORE.Window.screen.height * scaleDpi.y);
} }
#endif #endif

Caricamento…
Annulla
Salva