Skip to content

Commit

Permalink
do nothing when canvas is fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Sep 22, 2023
1 parent fd1ae49 commit 0256375
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions SporeBorderless/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ void Initialize()
MessageBoxA(nullptr, "couldn't retrieve app canvas!", "SporeBorderless", MB_OK | MB_ICONERROR);
return;
}

// we shouldn't do anything when
// the canvas is fullscreen
if (appCanvas->IsFullscreen())
{
return;
}

HWND windowHandle = appCanvas->GetWindow();
HMONITOR monitorHandle = appCanvas->GetMonitor();
Expand Down

0 comments on commit 0256375

Please sign in to comment.