Skip to content

Commit

Permalink
Merge pull request #17461 from ThirteenAG/master
Browse files Browse the repository at this point in the history
WM_USER_GET_EMULATION_STATE message
  • Loading branch information
hrydgard committed May 15, 2023
2 parents 90b0533 + 4bb9779 commit 3900722
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Windows/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ int verysleepy__useSendMessage = 1;

const UINT WM_VERYSLEEPY_MSG = WM_APP + 0x3117;
const UINT WM_USER_GET_BASE_POINTER = WM_APP + 0x3118; // 0xB118
const UINT WM_USER_GET_EMULATION_STATE = WM_APP + 0x3119; // 0xB119

// Respond TRUE to a message with this param value to indicate support.
const WPARAM VERYSLEEPY_WPARAM_SUPPORTED = 0;
Expand Down Expand Up @@ -789,6 +790,9 @@ namespace MainWindow
}
break;

case WM_USER_GET_EMULATION_STATE:
return (u32)(Core_IsActive() && GetUIState() == UISTATE_INGAME);

// Hack to kill the white line underneath the menubar.
// From https://stackoverflow.com/questions/57177310/how-to-paint-over-white-line-between-menu-bar-and-client-area-of-window
case WM_NCPAINT:
Expand Down

0 comments on commit 3900722

Please sign in to comment.