Skip to content

Add support for multiple ImGui viewports to filagui. - #10394

Open
Jmangles wants to merge 2 commits into
google:mainfrom
Jmangles:jr/filagui-viewports
Open

Jmangles wants to merge 2 commits into
google:mainfrom
Jmangles:jr/filagui-viewports

Conversation

@Jmangles

@Jmangles Jmangles commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Implements requested feature from #10393

@pixelflinger pixelflinger added the internal Issue/PR does not affect clients label Sep 11, 2026
float clip_min_y = (pcmd.ClipRect.y - clip_off.y) * clip_scale.y;
float clip_max_y = (pcmd.ClipRect.w - clip_off.y) * clip_scale.y;

clip_min_x = std::max(0.0f, std::min(clip_min_x, static_cast<float>(fbwidth)));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you use std::clamp here? (and below)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Issue/PR does not affect clients

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants