mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
internal/ui: bug fix: compile error with the cbackend tag
This commit is contained in:
parent
12ce5ae83a
commit
f4ad12987d
@ -48,7 +48,7 @@ func (u *UserInterface) Run(game Game) error {
|
||||
u.input.update(u.context)
|
||||
|
||||
w, h := cbackend.ScreenSize()
|
||||
if err := u.context.updateFrame(float64(w), float64(h), deviceScaleFactor); err != nil {
|
||||
if err := u.context.updateFrame(graphicsDriver(), float64(w), float64(h), deviceScaleFactor); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user