mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
restorable: Fix comments
This commit is contained in:
parent
eeb8fea778
commit
e2cfb2da6f
@ -102,7 +102,7 @@ func NewScreenFramebufferImage(width, height int) *Image {
|
|||||||
|
|
||||||
func (i *Image) clear() {
|
func (i *Image) clear() {
|
||||||
// There are not 'drawImageHistoryItem's for this image and dummyImage.
|
// There are not 'drawImageHistoryItem's for this image and dummyImage.
|
||||||
// As dummyImage is a priority image, this is restored faster than other regular images.
|
// As dummyImage is a priority image, this is restored before other regular images are restored.
|
||||||
w, h := i.Size()
|
w, h := i.Size()
|
||||||
sw, sh := dummyImage.Size()
|
sw, sh := dummyImage.Size()
|
||||||
dw := graphics.NextPowerOf2Int(w)
|
dw := graphics.NextPowerOf2Int(w)
|
||||||
|
Loading…
Reference in New Issue
Block a user