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