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

Fixing screen artifacts seen when ImGui keybindings UI is closed #72833

Merged
merged 3 commits into from
Apr 4, 2024

Conversation

katemonster33
Copy link
Contributor

@katemonster33 katemonster33 commented Apr 4, 2024

Summary

Bugfixes "Fixing screen artifacts left on the screen after closing keybindings UI"

Purpose of change

Fixes: #72065
Reverts: #72501

Describe the solution

Reverted a previous change related to forcing the screen to refresh while an ImGui UI is on the screen. the issue was that the UI window dimensions were wrong according to the ui_adaptor which caused confusion as to when certain parts of the screen should redraw.

Describe alternatives you've considered

Testing

Shrink CDDA screen down to, like, 640x480, open the keybindings screen, verify that the UI still redraws properly (responds to input), then close and verify there are no artifacts.

Additional context

…gui screens stop being drawn."

This reverts commit 853198e.
…e proper dimensions, not scaled based on console cursor position.
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Auto-requesting reviews from non-collaborators: @Qrox

@github-actions github-actions bot added Info / User Interface Game - player communication, menus, etc. [C++] Changes (can be) made in C++. Previously named `Code` <Bugfix> This is a fix for a bug (or closes open issue) astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions labels Apr 4, 2024
@I-am-Erk
Copy link
Member

I-am-Erk commented Apr 4, 2024

I don't feel like I really understand what I'm looking at but it doesn't look too likely to break anything.

@I-am-Erk I-am-Erk merged commit 046c7ce into CleverRaven:master Apr 4, 2024
25 of 29 checks passed
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Apr 5, 2024
SurFlurer added a commit to SurFlurer/Cataclysm-DDA that referenced this pull request Aug 26, 2024
…_screen_artifacts"

This reverts commit 046c7ce, reversing
changes made to 5dd5c2c.
this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc. json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ImGui Keybindings window. Leaves an image artifact
2 participants