mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
internal/ui: remove Bounds
This commit is contained in:
parent
fca8ebb9af
commit
67d947d37a
@ -16,7 +16,6 @@ package ui
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"image"
|
||||
"math"
|
||||
"sync"
|
||||
"syscall/js"
|
||||
@ -792,13 +791,6 @@ type Monitor struct{}
|
||||
|
||||
var theMonitor = &Monitor{}
|
||||
|
||||
func (m *Monitor) Bounds() image.Rectangle {
|
||||
screen := window.Get("screen")
|
||||
w := screen.Get("width").Int()
|
||||
h := screen.Get("height").Int()
|
||||
return image.Rect(0, 0, w, h)
|
||||
}
|
||||
|
||||
func (m *Monitor) Name() string {
|
||||
return ""
|
||||
}
|
||||
|
@ -19,7 +19,6 @@ package ui
|
||||
import (
|
||||
stdcontext "context"
|
||||
"fmt"
|
||||
"image"
|
||||
"runtime"
|
||||
"runtime/debug"
|
||||
"sync"
|
||||
@ -279,11 +278,6 @@ type Monitor struct{}
|
||||
|
||||
var theMonitor = &Monitor{}
|
||||
|
||||
func (m *Monitor) Bounds() image.Rectangle {
|
||||
// TODO: This should return the available viewport dimensions.
|
||||
return image.Rectangle{}
|
||||
}
|
||||
|
||||
func (m *Monitor) Name() string {
|
||||
return ""
|
||||
}
|
||||
|
@ -22,7 +22,6 @@ import "C"
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"image"
|
||||
"runtime"
|
||||
"sync"
|
||||
|
||||
@ -169,11 +168,6 @@ type Monitor struct{}
|
||||
|
||||
var theMonitor = &Monitor{}
|
||||
|
||||
func (m *Monitor) Bounds() image.Rectangle {
|
||||
// TODO: This should return the available viewport dimensions.
|
||||
return image.Rectangle{}
|
||||
}
|
||||
|
||||
func (m *Monitor) Name() string {
|
||||
return ""
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user