mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +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)
|
dw := graphics.NextPowerOf2Int(width)
|
||||||
dh := graphics.NextPowerOf2Int(height)
|
dh := graphics.NextPowerOf2Int(height)
|
||||||
vs := graphics.QuadVertices(dw, dh, 0, 0, sw, sh,
|
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,
|
0, 0,
|
||||||
1, 1, 1, 1)
|
1, 1, 1, 1)
|
||||||
is := graphics.QuadIndices()
|
is := graphics.QuadIndices()
|
||||||
|
Loading…
Reference in New Issue
Block a user