mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-24 18:02:02 +01:00
internal/glfwwin: remove GammaRamp
This commit is contained in:
parent
df0208ec79
commit
f7d1a43e98
@ -345,12 +345,6 @@ type VidMode struct {
|
||||
RefreshRate int
|
||||
}
|
||||
|
||||
type GammaRamp struct {
|
||||
Red []int
|
||||
Green []int
|
||||
Blue []int
|
||||
}
|
||||
|
||||
type Image struct {
|
||||
Width int
|
||||
Height int
|
||||
|
@ -36,12 +36,6 @@ func terminate() error {
|
||||
}
|
||||
}
|
||||
|
||||
for _, monitor := range _glfw.monitors {
|
||||
if len(monitor.originalRamp.Red) != 0 {
|
||||
monitor.platformSetGammaRamp(&monitor.originalRamp)
|
||||
}
|
||||
}
|
||||
|
||||
_glfw.monitors = nil
|
||||
|
||||
if err := platformTerminate(); err != nil {
|
||||
|
@ -225,9 +225,6 @@ type Monitor struct {
|
||||
modes []*VidMode
|
||||
currentMode *VidMode
|
||||
|
||||
originalRamp GammaRamp
|
||||
currentRamp GammaRamp
|
||||
|
||||
win32 struct {
|
||||
handle _HMONITOR
|
||||
|
||||
|
@ -337,14 +337,6 @@ func (m *Monitor) platformGetVideoMode() *VidMode {
|
||||
}
|
||||
}
|
||||
|
||||
func (m *Monitor) platformGetGammaRamp(ramp *GammaRamp) {
|
||||
panic("glfwwin: platformGetGammaRamp is not implemented")
|
||||
}
|
||||
|
||||
func (m *Monitor) platformSetGammaRamp(ramp *GammaRamp) {
|
||||
panic("glfwwin: platformSetGammaRamp is not implemented")
|
||||
}
|
||||
|
||||
func (m *Monitor) in32Adapter() (string, error) {
|
||||
if !_glfw.initialized {
|
||||
return "", NotInitialized
|
||||
|
Loading…
Reference in New Issue
Block a user