Parcourir la source

Use glfwSetWindowMonitor instead of Pos and Size GLFW functions

pull/5383/head
XenoMustache il y a 2 mois
Parent
révision
2b1d88cb98
1 fichiers modifiés avec 12 ajouts et 2 suppressions
  1. +12
    -2
      src/platforms/rcore_desktop_glfw.c

+ 12
- 2
src/platforms/rcore_desktop_glfw.c Voir le fichier

@ -265,8 +265,18 @@ void ToggleBorderlessWindowed(void)
const int monitorHeight = mode->height;
// Set screen position and size
glfwSetWindowPos(platform.handle, monitorPosX, monitorPosY);
glfwSetWindowSize(platform.handle, monitorWidth, monitorHeight);
glfwSetWindowMonitor(
platform.handle,
monitors[monitor],
monitorPosX,
monitorPosY,
monitorWidth,
monitorHeight,
mode->refreshRate
);
// glfwSetWindowPos(platform.handle, monitorPosX, monitorPosY);
// glfwSetWindowSize(platform.handle, monitorWidth, monitorHeight);
// Refocus window
glfwFocusWindow(platform.handle);

Chargement…
Annuler
Enregistrer