Skip to content

Commit

Permalink
Paint v2.0 - Final commit
Browse files Browse the repository at this point in the history
  • Loading branch information
AkshatAggarwal14 committed Nov 21, 2022
1 parent d053d5c commit ab81530
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,10 @@ int main() {
if (ismouseclick(WM_LBUTTONUP)) {
x2 = Cursor.x, y2 = Cursor.y;
clearmouseclick(WM_LBUTTONUP);
if (x2 == x1 && y2 == y1) {
drawCar(x1 - 88, y1 - 40);
break;
}

initial_drawing_area();
setcolor(COLOR(163, 167, 176));
Expand Down

0 comments on commit ab81530

Please sign in to comment.