Fixed untrue error message

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7886 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: eec5e9d891665451c0de6e4d564b3fa0f04244d0
Former-commit-id: 6913e7a7663a0154d729a91fcd08b7fc58b031af
This commit is contained in:
beaglejoe 2022-01-08 13:19:02 +00:00
parent c24d9d34ab
commit 025ad25063

View file

@ -83,8 +83,10 @@ void GfuiEventLoop::injectKeyboardEvent(int code, int modifier, int state,
// its WM keyboard shortcuts (didn't find any other way yet).
if (code == SDLK_RETURN && (modifier & KMOD_ALT) && state == 0)
{
if (!GfScrToggleFullScreen())
GfLogError("Failed to toggle on/off the full-screen mode\n");
if (GfScrToggleFullScreen())
GfLogDebug("Toggle full-screen mode ON \n");
else
GfLogDebug("Toggle full-screen mode OFF \n");
}
else
#endif