Skip to content

Commit

Permalink
Update main.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Woxel authored Oct 5, 2023
1 parent 8cbba45 commit 3fcc07f
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3fcc07f

Please sign in to comment.