From f7d1a43e98e2cb238f850de1158f304672f3a79a Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 27 May 2022 20:19:12 +0900 Subject: [PATCH] internal/glfwwin: remove GammaRamp --- internal/glfwwin/glfw3h_windows.go | 6 ------ internal/glfwwin/init_windows.go | 6 ------ internal/glfwwin/internal_windows.go | 3 --- internal/glfwwin/win32monitor_windows.go | 8 -------- 4 files changed, 23 deletions(-) diff --git a/internal/glfwwin/glfw3h_windows.go b/internal/glfwwin/glfw3h_windows.go index 5111ceeeb..262450b60 100644 --- a/internal/glfwwin/glfw3h_windows.go +++ b/internal/glfwwin/glfw3h_windows.go @@ -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 diff --git a/internal/glfwwin/init_windows.go b/internal/glfwwin/init_windows.go index e726f0be6..16f69875d 100644 --- a/internal/glfwwin/init_windows.go +++ b/internal/glfwwin/init_windows.go @@ -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 { diff --git a/internal/glfwwin/internal_windows.go b/internal/glfwwin/internal_windows.go index cc8d996cc..85d7e7fa4 100644 --- a/internal/glfwwin/internal_windows.go +++ b/internal/glfwwin/internal_windows.go @@ -225,9 +225,6 @@ type Monitor struct { modes []*VidMode currentMode *VidMode - originalRamp GammaRamp - currentRamp GammaRamp - win32 struct { handle _HMONITOR diff --git a/internal/glfwwin/win32monitor_windows.go b/internal/glfwwin/win32monitor_windows.go index 64b0f70f6..1ad49e507 100644 --- a/internal/glfwwin/win32monitor_windows.go +++ b/internal/glfwwin/win32monitor_windows.go @@ -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