ref: c096b83b44248f0f714bd89b5091f419efd67335
parent: 96e8da63a3719f74c93b30117bed37da9ee15042
author: Olav Sørensen <olav.sorensen@live.no>
date: Tue May 10 14:10:23 EDT 2022
Fix order-of-testing mistake.
--- a/src/pt2_mouse.c
+++ b/src/pt2_mouse.c
@@ -2210,10 +2210,6 @@
{
int32_t guiButton;
- // if in fullscreen mode and the image isn't filling the whole screen, handle top left corner as quit
- if (video.fullscreen && (video.renderX > 0 || video.renderY > 0) && (mouse.rawX == 0 && mouse.rawY == 0))
- return handleGUIButtons(PTB_QUIT);
-
if (editor.swapChannelFlag || ui.editTextFlag)
return false;
@@ -2357,6 +2353,10 @@
return true;
}
+
+ // if in fullscreen mode and the image isn't filling the whole screen, handle top left corner as quit
+ if (video.fullscreen && (video.renderX > 0 || video.renderY > 0) && (mouse.rawX == 0 && mouse.rawY == 0))
+ return handleGUIButtons(PTB_QUIT);
guiButton = checkGUIButtons();
if (guiButton == -1)