diff --git a/examples/monitor/main.go b/examples/monitor/main.go index fb69a00fd..fd9d1504a 100644 --- a/examples/monitor/main.go +++ b/examples/monitor/main.go @@ -57,7 +57,7 @@ func (g *Game) Draw(screen *ebiten.Image) { lines = append(lines, "") for i, m := range g.monitors { - lines = append(lines, fmt.Sprintf("%d: %s %s", i, m.Name(), m.Bounds().String())) + lines = append(lines, fmt.Sprintf("%d: %s", i, m.Name())) } activeMonitor := ebiten.Monitor() diff --git a/monitor.go b/monitor.go index 49e6bf247..31a45a8a7 100644 --- a/monitor.go +++ b/monitor.go @@ -15,20 +15,12 @@ package ebiten import ( - "image" - "github.com/hajimehoshi/ebiten/v2/internal/ui" ) // MonitorType represents a monitor available to the system. type MonitorType ui.Monitor -// Bounds returns the position and size of the monitor in pixels. -// Be careful that the unit is not device-independent pixels. -func (m *MonitorType) Bounds() image.Rectangle { - return (*ui.Monitor)(m).Bounds() -} - // Name returns the monitor's name. On Linux, this reports the monitors in xrandr format. // On Windows, this reports "Generic PnP Monitor" for all monitors. func (m *MonitorType) Name() string {