internal/glfwwin: remove GammaRamp

This commit is contained in:
Hajime Hoshi 2022-05-27 20:19:12 +09:00
parent df0208ec79
commit f7d1a43e98
4 changed files with 0 additions and 23 deletions

View File

@ -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

View File

@ -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 {

View File

@ -225,9 +225,6 @@ type Monitor struct {
modes []*VidMode
currentMode *VidMode
originalRamp GammaRamp
currentRamp GammaRamp
win32 struct {
handle _HMONITOR

View File

@ -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