mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 10:42:42 +01:00
restorable: Add comments
This commit is contained in:
parent
7e0dee0730
commit
09d473ea1b
@ -193,6 +193,9 @@ func (i *Image) fill(r, g, b, a uint8) {
|
||||
|
||||
// There are not 'drawTrianglesHistoryItem's for this image and emptyImage.
|
||||
// As emptyImage is a priority image, this is restored before other regular images are restored.
|
||||
|
||||
// The rendering target size needs to be its 'internal' size instead of the exposed size to avoid glitches on
|
||||
// mobile platforms (See the change 1e1f309a).
|
||||
dw, dh := i.internalSize()
|
||||
sw, sh := emptyImage.Size()
|
||||
vs := make([]float32, 4*graphics.VertexFloatNum)
|
||||
|
Loading…
Reference in New Issue
Block a user