mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 11:12:44 +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
|
window *Window
|
||||||
|
|
||||||
modes []*VidMode
|
modes []*VidMode
|
||||||
currentMode *VidMode
|
|
||||||
|
|
||||||
win32 struct {
|
win32 struct {
|
||||||
handle _HMONITOR
|
handle _HMONITOR
|
||||||
|
@ -261,8 +261,7 @@ func (m *Monitor) GetVideoMode() (*VidMode, error) {
|
|||||||
if !_glfw.initialized {
|
if !_glfw.initialized {
|
||||||
return nil, NotInitialized
|
return nil, NotInitialized
|
||||||
}
|
}
|
||||||
m.currentMode = m.platformGetVideoMode()
|
return m.platformGetVideoMode(), nil
|
||||||
return m.currentMode, nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetGamma is not implemented.
|
// SetGamma is not implemented.
|
||||||
|
Loading…
Reference in New Issue
Block a user