internal/glfwwin: refactoring: remove Monitor.currentMode

This commit is contained in:
Hajime Hoshi 2022-05-29 16:00:18 +09:00
parent 2efbb819e0
commit ce147a7e38
2 changed files with 2 additions and 4 deletions

View File

@ -204,8 +204,7 @@ type Monitor struct {
window *Window
modes []*VidMode
currentMode *VidMode
modes []*VidMode
win32 struct {
handle _HMONITOR

View File

@ -261,8 +261,7 @@ func (m *Monitor) GetVideoMode() (*VidMode, error) {
if !_glfw.initialized {
return nil, NotInitialized
}
m.currentMode = m.platformGetVideoMode()
return m.currentMode, nil
return m.platformGetVideoMode(), nil
}
// SetGamma is not implemented.