From 411f509b99f26fdc512344961267aac0b9c90b55 Mon Sep 17 00:00:00 2001 From: DubbleClick Date: Fri, 12 Apr 2024 13:22:30 +0200 Subject: [PATCH] #1005 close button id changed from 3 to 4 --- GWToolboxdll/Modules/GameSettings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GWToolboxdll/Modules/GameSettings.cpp b/GWToolboxdll/Modules/GameSettings.cpp index 51c22129d..4f4f4d04f 100644 --- a/GWToolboxdll/Modules/GameSettings.cpp +++ b/GWToolboxdll/Modules/GameSettings.cpp @@ -483,7 +483,7 @@ namespace { uint32_t button_id_dupe; uint32_t current_state; // 0x5 = hovered, 0x6 = mouse down }* param = static_cast(wparam); - if (param->button_id == 0x3 && param->current_state == 0x6) { + if (param->button_id == 0x4 && param->current_state == 0x6) { param->current_state = 0x5; // Revert state to avoid GW closing the window on mouse up // Left button clicked, on the exit button (ID 0x3)