From ab815305186ae4802507ab77735c0af8f75e3e74 Mon Sep 17 00:00:00 2001 From: Akshat Aggarwal Date: Mon, 21 Nov 2022 22:34:01 +0530 Subject: [PATCH] Paint v2.0 - Final commit --- main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.cpp b/main.cpp index 9c5dc43..acdfa26 100644 --- a/main.cpp +++ b/main.cpp @@ -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));