mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 02:42: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
|
RefreshRate int
|
||||||
}
|
}
|
||||||
|
|
||||||
type GammaRamp struct {
|
|
||||||
Red []int
|
|
||||||
Green []int
|
|
||||||
Blue []int
|
|
||||||
}
|
|
||||||
|
|
||||||
type Image struct {
|
type Image struct {
|
||||||
Width int
|
Width int
|
||||||
Height 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
|
_glfw.monitors = nil
|
||||||
|
|
||||||
if err := platformTerminate(); err != nil {
|
if err := platformTerminate(); err != nil {
|
||||||
|
@ -225,9 +225,6 @@ type Monitor struct {
|
|||||||
modes []*VidMode
|
modes []*VidMode
|
||||||
currentMode *VidMode
|
currentMode *VidMode
|
||||||
|
|
||||||
originalRamp GammaRamp
|
|
||||||
currentRamp GammaRamp
|
|
||||||
|
|
||||||
win32 struct {
|
win32 struct {
|
||||||
handle _HMONITOR
|
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) {
|
func (m *Monitor) in32Adapter() (string, error) {
|
||||||
if !_glfw.initialized {
|
if !_glfw.initialized {
|
||||||
return "", NotInitialized
|
return "", NotInitialized
|
||||||
|
Loading…
Reference in New Issue
Block a user