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

Fixed terminal settings saving #35694

Merged
merged 1 commit into from
Nov 25, 2019

Conversation

AMurkin
Copy link
Contributor

@AMurkin AMurkin commented Nov 24, 2019

Summary

SUMMARY: Bugfixes "Fixed terminal settings saving"

Purpose of change

Fixes #35631.

Describe the solution

Replace handle_redraw() calls with catacurses::refresh() calls.
game_ui::init_ui() is doing much more than redrawing.
Discard handle_redraw() function.

Describe alternatives you've considered

It might be that catacurses::refresh() is not a best option here.

Testing

Changing terminal width/height from the options when world is loaded or isn't loaded works.
Screen redraws as expected it seems.

@Night-Pryanik take a look, please, as this technically reverts some of your changes in #35157 and #35553.

game_ui::init_ui() is doing much more than redrawing.
Discard handle_redraw().
Fixes CleverRaven#35631.
@ZhilkinSerg ZhilkinSerg added [C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc. SDL: Tiles / Sound Tiles visual interface and sounds. labels Nov 24, 2019
@Night-Pryanik
Copy link
Contributor

I'm not good at all with all this SDL stuff. If catacurses::refresh() does what we want, than I'm fine with the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc. SDL: Tiles / Sound Tiles visual interface and sounds.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Terminal Settings Not Saving
3 participants