UNTESTED: ebiten v2
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
"math"
|
||||
"os"
|
||||
|
||||
"github.com/hajimehoshi/ebiten"
|
||||
"github.com/hajimehoshi/ebiten/v2"
|
||||
|
||||
"code.ur.gs/lupine/ordoor/internal/assetstore"
|
||||
"code.ur.gs/lupine/ordoor/internal/config"
|
||||
@@ -103,9 +103,7 @@ func (e *env) Draw(screen *ebiten.Image) error {
|
||||
op.GeoM.Translate(float64(xOff), 0)
|
||||
op.GeoM.Scale(e.state.zoom, e.state.zoom) // apply current zoom factor
|
||||
|
||||
if err := screen.DrawImage(glyph.Image, op); err != nil {
|
||||
return err
|
||||
}
|
||||
screen.DrawImage(glyph.Image, op)
|
||||
|
||||
xOff += glyph.Rect.Dx()
|
||||
}
|
||||
|
Reference in New Issue
Block a user