mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-09 17:43:18 +01:00
restorable: Skip initializing the screen image
This commit is contained in:
parent
962a11468b
commit
247e4f5b6b
@ -94,7 +94,7 @@ func NewScreenFramebufferImage(width, height int) *Image {
|
|||||||
screen: true,
|
screen: true,
|
||||||
}
|
}
|
||||||
theImages.add(i)
|
theImages.add(i)
|
||||||
i.ReplacePixels(nil, 0, 0, width, height)
|
// The screen image doesn't have to be cleared.
|
||||||
return i
|
return i
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user