mobile: Remove SetScreenSize/Scale

This commit is contained in:
Hajime Hoshi 2016-06-25 04:45:19 +09:00
parent baba009a28
commit 58218a85b5
3 changed files with 0 additions and 24 deletions

View File

@ -22,12 +22,6 @@ import (
"github.com/hajimehoshi/ebiten"
)
func setScreenSize(width, height int) {
}
func setScreenScale(scale float64) {
}
func render() error {
return nil
}

View File

@ -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?")

View File

@ -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()
}