Browse Source

Corrected minor windows flags issues

pull/1449/head
Ray 4 years ago
parent
commit
62406259d7
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      examples/core/core_window_flags.c
  2. +1
    -1
      src/core.c

+ 1
- 1
examples/core/core_window_flags.c View File

@ -148,7 +148,7 @@ int main(void)
DrawText(FormatText("Screen Size: [%i, %i]", GetScreenWidth(), GetScreenHeight()), 10, 40, 10, GREEN); DrawText(FormatText("Screen Size: [%i, %i]", GetScreenWidth(), GetScreenHeight()), 10, 40, 10, GREEN);
// Draw window state info // Draw window state info
DrawText("Following flags can set after window creation:", 10, 60, 10, GRAY);
DrawText("Following flags can be set after window creation:", 10, 60, 10, GRAY);
if (IsWindowState(FLAG_FULLSCREEN_MODE)) DrawText("[F] FLAG_FULLSCREEN_MODE: on", 10, 80, 10, LIME); if (IsWindowState(FLAG_FULLSCREEN_MODE)) DrawText("[F] FLAG_FULLSCREEN_MODE: on", 10, 80, 10, LIME);
else DrawText("[F] FLAG_FULLSCREEN_MODE: off", 10, 80, 10, MAROON); else DrawText("[F] FLAG_FULLSCREEN_MODE: off", 10, 80, 10, MAROON);
if (IsWindowState(FLAG_WINDOW_RESIZABLE)) DrawText("[R] FLAG_WINDOW_RESIZABLE: on", 10, 100, 10, LIME); if (IsWindowState(FLAG_WINDOW_RESIZABLE)) DrawText("[R] FLAG_WINDOW_RESIZABLE: on", 10, 100, 10, LIME);

+ 1
- 1
src/core.c View File

@ -1222,7 +1222,7 @@ void ClearWindowState(unsigned int flags)
if (((CORE.Window.flags & FLAG_VSYNC_HINT) > 0) && ((flags & FLAG_VSYNC_HINT) > 0)) if (((CORE.Window.flags & FLAG_VSYNC_HINT) > 0) && ((flags & FLAG_VSYNC_HINT) > 0))
{ {
glfwSwapInterval(0); glfwSwapInterval(0);
CORE.Window.flags ^= ~FLAG_VSYNC_HINT;
CORE.Window.flags &= ~FLAG_VSYNC_HINT;
} }
// State change: FLAG_FULLSCREEN_MODE // State change: FLAG_FULLSCREEN_MODE

Loading…
Cancel
Save