restorable: Add comments

This commit is contained in:
Hajime Hoshi 2019-06-25 23:41:36 +09:00
parent 7e0dee0730
commit 09d473ea1b

View File

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