Преглед на файлове

use refresh rate when setting window monitor for full screen

leonsal преди 8 години
родител
ревизия
53e7e7ce24
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      window/glfw.go

+ 1 - 1
window/glfw.go

@@ -257,7 +257,7 @@ func (w *GLFW) SetFullScreen(full bool) {
 		w.lastX, w.lastY = w.win.GetPos()
 		w.lastWidth, w.lastHeight = w.win.GetSize()
 		// Sets monitor for full screen
-		w.win.SetMonitor(mon, 0, 0, width, height, glfw.DontCare)
+		w.win.SetMonitor(mon, 0, 0, width, height, vmode.RefreshRate)
 		w.fullScreen = true
 	} else {
 		// Restore window to previous position and size