mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
restorable: Bug fix: Clearing a new image region was wrong
This commit is contained in:
parent
ce21125345
commit
90efddd6b3
@ -87,7 +87,7 @@ func NewImage(width, height int, volatile bool) *Image {
|
||||
dw := graphics.NextPowerOf2Int(width)
|
||||
dh := graphics.NextPowerOf2Int(height)
|
||||
vs := graphics.QuadVertices(dw, dh, 0, 0, sw, sh,
|
||||
float32(width)/float32(sw), 0, 0, float32(height)/float32(sh),
|
||||
float32(dw)/float32(sw), 0, 0, float32(dh)/float32(sh),
|
||||
0, 0,
|
||||
1, 1, 1, 1)
|
||||
is := graphics.QuadIndices()
|
||||
|
Loading…
Reference in New Issue
Block a user