Quellcode durchsuchen

fix the issue with GetScreenWidth/GetScreenHeight that was identified on other platforms (#4451)

pull/4452/head
Arche Washi vor 2 Wochen
committed von GitHub
Ursprung
Commit
3bad05aa7b
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden GPG-Schlüssel-ID: B5690EEEBB952194
2 geänderte Dateien mit 6 neuen und 0 gelöschten Zeilen
  1. +3
    -0
      src/platforms/rcore_desktop_rgfw.c
  2. +3
    -0
      src/platforms/rcore_web.c

+ 3
- 0
src/platforms/rcore_desktop_rgfw.c Datei anzeigen

@ -520,6 +520,9 @@ void SetWindowMaxSize(int width, int height)
// Set window dimensions
void SetWindowSize(int width, int height)
{
CORE.Window.screen.width = width;
CORE.Window.screen.height = height;
RGFW_window_resize(platform.window, RGFW_AREA(width, height));
}

+ 3
- 0
src/platforms/rcore_web.c Datei anzeigen

@ -667,6 +667,9 @@ void SetWindowMaxSize(int width, int height)
// Set window dimensions
void SetWindowSize(int width, int height)
{
CORE.Window.screen.width = width;
CORE.Window.Screen.height = height;
glfwSetWindowSize(platform.handle, width, height);
}

Laden…
Abbrechen
Speichern