mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +01:00
mobile: Remove SetScreenSize/Scale
This commit is contained in:
parent
baba009a28
commit
58218a85b5
@ -22,12 +22,6 @@ import (
|
||||
"github.com/hajimehoshi/ebiten"
|
||||
)
|
||||
|
||||
func setScreenSize(width, height int) {
|
||||
}
|
||||
|
||||
func setScreenScale(scale float64) {
|
||||
}
|
||||
|
||||
func render() error {
|
||||
return nil
|
||||
}
|
||||
|
@ -25,14 +25,6 @@ import (
|
||||
|
||||
var chError <-chan error
|
||||
|
||||
func setScreenSize(width, height int) {
|
||||
ui.CurrentUI().SetScreenSize(width, height)
|
||||
}
|
||||
|
||||
func setScreenScale(scale float64) {
|
||||
ui.CurrentUI().SetScreenScale(scale)
|
||||
}
|
||||
|
||||
func render() error {
|
||||
if chError == nil {
|
||||
return errors.New("mobile: chError must not be nil: Start is not called yet?")
|
||||
|
@ -20,8 +20,6 @@ import (
|
||||
)
|
||||
|
||||
type EventDispatcher interface {
|
||||
SetScreenSize(width, height int)
|
||||
SetScreenScale(scale float64)
|
||||
Render() error
|
||||
|
||||
// UpdateTouchesOnAndroid updates the touch state on Android.
|
||||
@ -58,14 +56,6 @@ type eventDispatcher struct {
|
||||
touches map[int]position
|
||||
}
|
||||
|
||||
func (e *eventDispatcher) SetScreenSize(width, height int) {
|
||||
setScreenSize(width, height)
|
||||
}
|
||||
|
||||
func (e *eventDispatcher) SetScreenScale(scale float64) {
|
||||
setScreenScale(scale)
|
||||
}
|
||||
|
||||
func (e *eventDispatcher) Render() error {
|
||||
return render()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user