Skip to content

Clipping is not related to the window with the latest imgui #205

@Namek

Description

@Namek

I have updated imgui from 1.88dock to 1.89.3dock. The screen is cut, depending on the position. It seems the editor has the size of the window but its clipping is not related to the window but rather to the world space (?).

The recording should explain what's going on, notice the huge black parts around the editor:

app_Gsf0CuRIrC.mp4

What's interesting though, I've found this code in the imgui_canvas.cpp:

    // #debug: Canvas content.
    //m_DrawList->AddRectFilled(m_StartPos, m_StartPos + m_CurrentSize, IM_COL32(0, 0, 0, 64));
    //m_DrawList->AddRect(m_WidgetRect.Min, m_WidgetRect.Max, IM_COL32(255, 0, 255, 64));

I have uncommented the last line and it seems to fix everything (it is, remove the black parts and not crop the content):
obraz

However, it doesn't seem to be a proper fix since it is commented as debug code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions