Skip to content

Commit

Permalink
Removed SHQueryUserNotificationState use.
Browse files Browse the repository at this point in the history
  • Loading branch information
MiranDMC committed Jun 10, 2024
1 parent e008395 commit 1b21015
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cleo_sdk/CLEO_Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,9 @@ namespace CLEO
auto msg = TraceVArg(CLEO::eLogLevel::Error, format, args);
va_end(args);

QUERY_USER_NOTIFICATION_STATE pquns;
SHQueryUserNotificationState(&pquns);
bool fullscreen = (pquns == QUNS_BUSY) || (pquns == QUNS_RUNNING_D3D_FULL_SCREEN) || (pquns == QUNS_PRESENTATION_MODE);
auto mainWnd = (HWND*)0x001C9055C; // PluginSDK: RsGlobal.ps->window
auto style = GetWindowLong(RsGlobal.ps->window, GWL_STYLE);
bool fullscreen = (style & (WS_BORDER | WS_CAPTION)) != 0;

if (fullscreen)
{
Expand Down

0 comments on commit 1b21015

Please sign in to comment.