Skip to content

Commit

Permalink
#1005 close button id changed from 3 to 4
Browse files Browse the repository at this point in the history
  • Loading branch information
DubbleClick committed Apr 12, 2024
1 parent 28e6036 commit 411f509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GWToolboxdll/Modules/GameSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ namespace {
uint32_t button_id_dupe;
uint32_t current_state; // 0x5 = hovered, 0x6 = mouse down
}* param = static_cast<MouseParams*>(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)
Expand Down

0 comments on commit 411f509

Please sign in to comment.