mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 13:07:26 +01:00
restorable: Fix comments
This commit is contained in:
parent
4ee586b7a5
commit
2735f4eddc
@ -305,8 +305,6 @@ func (i *Image) ClearPixels(x, y, width, height int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ReplacePixels replaces the image pixels with the given pixels slice.
|
// ReplacePixels replaces the image pixels with the given pixels slice.
|
||||||
//
|
|
||||||
// If pixels is nil, ReplacePixels clears the specified reagion.
|
|
||||||
func (i *Image) ReplacePixels(pixels []byte, x, y, width, height int) {
|
func (i *Image) ReplacePixels(pixels []byte, x, y, width, height int) {
|
||||||
if pixels == nil {
|
if pixels == nil {
|
||||||
panic("restorable: pixels must not be nil")
|
panic("restorable: pixels must not be nil")
|
||||||
|
Loading…
Reference in New Issue
Block a user