raylib-extras/rlImGui-cs

Missing text and box when maximizing window + fullscreen

Magnatales opened this issue · 3 comments

Problem:
When using rlImGui and using Raylib.MaximizeWindow(); and Raylib.ToggleFullscreen(); there are some text missing in imgui.

Setup:

rlImGui.Setup();
public override void Draw()
    {
        rlImGui.Begin();
        ImGui.ShowDemoWindow();
        rlImGui.End();
    }

public override void Update()
    {
        if (Raylib.IsKeyPressed(KeyboardKey.KEY_F11))
        {
           Raylib.MaximizeWindow();
           Raylib.ToggleFullscreen();
        }
    }

Showcase:

rider64_6AQQKnPzWc.mp4

Note:
This does not happen when only using Raylib.ToggleFullscreen(); so it's an issue related when using fullscreen in a window that is maximized.

Can you provide a complete example program that shows the problem and let me know what platform you are on?

I could also reproduce. You just need maximize a window, and then set fullscreen to it with Raylib.SetWindowState(ConfigFlags.FLAG_FULLSCREEN_MODE);. Part of all the imgui windows does not show.
If the window is not maximised when going fullscreen, the issue does not happen.
Tried on version 1.0.2 and 2.0.0, on Windows 10.

Windowed:
image

Fullscreen:
image

I found the problem, it was in both the C++ and C# versions of rlImGui and has been fixed in both places. Thank you for the report.