Skip to content

Commit 78fd14c

Browse files
committed
Delete and fill should mark the canvas as dirty.
1 parent e91d55e commit 78fd14c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sprite.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,7 @@ main_loop(void)
590590
case 'd':
591591
update_undo();
592592
pixel[y - 4][x - 32].color = -1;
593+
dirty = 1;
593594
break;
594595
case 'E':
595596
case 'e':
@@ -599,6 +600,7 @@ main_loop(void)
599600
case 'f':
600601
update_undo();
601602
fill_region(y, x, color, pixel[y - 4][x - 32].color);
603+
dirty = 1;
602604
break;
603605
case 'S':
604606
case 's':

0 commit comments

Comments
 (0)