Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Briefing Icons at 4K in SCPUI #6327

Merged
merged 2 commits into from
Aug 29, 2024

Conversation

MjnMixael
Copy link
Contributor

I'm honestly not sure if this code was meant to cull icons outside the screen from being rendered or what, exactly. However at 4k resolution in SCPUI it's possible to validly have icons well outside the gr_screen.max_w_unscaled boundaries so we shouldn't return here in that case or those icons won't be rendered.

In fact, I don't think we should ever try and cull icons in this step because gr_aa_bitmap() already does that when it checks for clipping.

This may not be the right fix.. we could compare to the actual screen width and height but a lot of this code is uncommented and I'm not sure what it's all doing other than trying to scale the icon coordinates. That said, I tested this in both SCPUI and retail with icons in the middle of the map, all 4 corners and outside the map bounds in all directions and everything seemed to render as expected.

code/mission/missionbriefcommon.cpp Outdated Show resolved Hide resolved
@TRBlount TRBlount merged commit 10f6f47 into scp-fs2open:master Aug 29, 2024
16 checks passed
@MjnMixael MjnMixael deleted the fix_briefing_icons_4k branch August 29, 2024 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants