Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
Fix arrow image glitching out when using fill tool
Browse files Browse the repository at this point in the history
  • Loading branch information
IAmMoltony committed Nov 16, 2022
1 parent 34df9e6 commit 5cca44d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ int main(int argc, char **argv)
bool showHud = true;
bool eraserFill = false;
u8 selectedColor = 0;
u8 shapesSelectedShape = 0; // 0 = filled square
// 1 = not filled square
// 2 = line
u8 lineThickness = 0;
u16 frames = 0;
Tool tool = toolPencil;
Expand Down Expand Up @@ -249,6 +252,8 @@ int main(int argc, char **argv)
{
case toolFill:
gfxFloodFill(picture, pos.px, pos.py, colors[selectedColor], gfxGetPixel(picture, pos.px, pos.py));
ppmUnload(imgArrow);
ppmLoad("nitro:/graphics/arrow.ppm");
break;
case toolEraser:
if (eraserFill)
Expand Down

0 comments on commit 5cca44d

Please sign in to comment.