internal/ui: bug fix: compile error with the cbackend tag

This commit is contained in:
Hajime Hoshi 2022-03-21 16:59:53 +09:00
parent 12ce5ae83a
commit f4ad12987d

View File

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