From 3fcc07f9a9e93b0c0fa5e72106266866b1a79e13 Mon Sep 17 00:00:00 2001 From: Woxel <143615249+woxels@users.noreply.github.com> Date: Thu, 5 Oct 2023 12:52:57 +0100 Subject: [PATCH] Update main.c --- main.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 38334f2..56461c8 100644 --- a/main.c +++ b/main.c @@ -442,21 +442,35 @@ void main_loop() WOX_QUIT(); break; } - else if(mx < 28) + else if(mx < 24) { SDL_MinimizeWindow(wnd); break; } + else if(mx < 40) + { + maxed = 1 - maxed; + if(maxed == 1){SDL_MaximizeWindow(wnd);} + else{SDL_RestoreWindow(wnd);} + break; + } else if(mx > winw-14) { WOX_QUIT(); break; } - else if(mx > winw-28) + else if(mx > winw-24) { SDL_MinimizeWindow(wnd); break; } + else if(mx > winw-40) + { + maxed = 1 - maxed; + if(maxed == 1){SDL_MaximizeWindow(wnd);} + else{SDL_RestoreWindow(wnd);} + break; + } dsx = mx, dsy = my; break;