You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running SetWindowState(FLAG_WINDOW_ALWAYS_RUN) after ToggleFullscreen() will toggle fullscreen off. I suppose you can just make sure to run SetWindowState(FLAG_WINDOW_ALWAYS_RUN) before ToggleFullscreen() but it seems like undesired behavior regardless.
Environment
Raylib 5.5 C
Windows 10
Platform backend: DESKTOP (GLFW)
Renderer: Intel(R) HD Graphics 530
Code Example
#include "raylib.h"
int main(void)
{
InitWindow(1600, 900, "raylib [core] example - basic window");
ToggleFullscreen();
SetWindowState(FLAG_WINDOW_ALWAYS_RUN);
while (!WindowShouldClose())
{
BeginDrawing();
ClearBackground(BLACK);
DrawText("Congrats! You created your first window!", 190, 200, 20, ORANGE);
EndDrawing();
}
CloseWindow();
return 0;
}
The text was updated successfully, but these errors were encountered:
Changing to (actual/real) fullscreen won't happen instantly (GLFW will take a moment to change the resolution). When glfwWaitEvents() stops getting called that probably breaks that process for some reason.
@asdqwe Could you please explain your reasoning for thinking this is the cause of the issue?
veins1
added a commit
to veins1/raylib
that referenced
this issue
Dec 19, 2024
Issue description
Running
SetWindowState(FLAG_WINDOW_ALWAYS_RUN)
afterToggleFullscreen()
will toggle fullscreen off. I suppose you can just make sure to runSetWindowState(FLAG_WINDOW_ALWAYS_RUN)
beforeToggleFullscreen()
but it seems like undesired behavior regardless.Environment
Raylib 5.5 C
Windows 10
Platform backend: DESKTOP (GLFW)
Renderer: Intel(R) HD Graphics 530
Code Example
The text was updated successfully, but these errors were encountered: