mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +01:00
internal/glfwwin: refactoring: remove Monitor.currentMode
This commit is contained in:
parent
2efbb819e0
commit
ce147a7e38
@ -204,8 +204,7 @@ type Monitor struct {
|
||||
|
||||
window *Window
|
||||
|
||||
modes []*VidMode
|
||||
currentMode *VidMode
|
||||
modes []*VidMode
|
||||
|
||||
win32 struct {
|
||||
handle _HMONITOR
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user