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 issue where imgui screens freeze when window is made small #72501

Merged
merged 2 commits into from
Mar 22, 2024

Conversation

katemonster33
Copy link
Contributor

Summary

Bugfixes "Fixing issue where ImGui screens stop drawing themselves when CDDA window is made small"

Purpose of change

Fixes: #72470

Describe the solution

in input_manager::get_input_event(), forcibly set needupdate to true when an imgui window is on screen so refresh_update() is called

Describe alternatives you've considered

no reason to ever stop drawing the screen completely, we could probably just have some catch-all code to update the screen 30 times a second (at least)

Testing

opened imgui keybindings screen, shrunk screen down to minimum size and verified that the screen still accepts input.

Additional context

@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions labels Mar 19, 2024
src/sdltiles.cpp Outdated Show resolved Hide resolved
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actions github-actions bot added astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Mar 19, 2024
@Maleclypse Maleclypse merged commit 173516e into CleverRaven:master Mar 22, 2024
23 of 26 checks passed
SurFlurer added a commit to SurFlurer/Cataclysm-DDA that referenced this pull request Aug 26, 2024
…_frozen_windows"

This reverts commit 173516e, reversing
changes made to 63b735e.
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 [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ImGui windows don't render when screen is small (too short)
2 participants