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

UI Refresh issue when map and console fonts have different size settings #15881

Closed
Beanzy opened this issue Mar 23, 2016 · 5 comments · Fixed by #16162
Closed

UI Refresh issue when map and console fonts have different size settings #15881

Beanzy opened this issue Mar 23, 2016 · 5 comments · Fixed by #16162

Comments

@Beanzy
Copy link

Beanzy commented Mar 23, 2016

Cata version: Experimental v. 4583 x64 tiles

Since #15828 using custom fonts (ascii instead of tiles) can cause the UI to not refresh properly. Example below.

catadda2

The advanced inventory ui remains on screen even after it's been closed. Other ui elements have this issue too.

Edit: Here is a copy of my fonts and config, link

@mutt3x
Copy link

mutt3x commented Mar 25, 2016

Well well...
This happens only if you change the default w and h in fonts.json
If the default w:8 h:16 is set then there is no bug, oddly.
From what ive seen it happens on any font and on both 32 and 64 bit.

This bug makes the game pretty much unplayable considering the annoyance factor.

@Beanzy Beanzy changed the title UI Refresh issue with non-default fonts. UI Refresh issue when map and console fonts have different size settings Mar 27, 2016
@Beanzy
Copy link
Author

Beanzy commented Mar 27, 2016

I've realized it's more than non-default values.

If the values for console fonts (i.e. "fontwidth" & "fontheight") are different from the map fonts (i.e. "map_fontwidth" & "map_fontheight") in fonts.json the refresh issue will occur.

As far as I've seen, the issue doesn't occur as long as the console and map fonts have the same value (whatever that may be).

@BFG1992
Copy link

BFG1992 commented Mar 30, 2016

Accidentally made a dublicate issue (this one ⬆️), but it has a video I made of a game's behaviour, here: https://www.youtube.com/watch?v=m4ET-WEG4jA

@devilstars
Copy link
Contributor

Same here. Windows build, experimental. Game is unplayable now.
2016-04-01_092213

@SeanMirrsen
Copy link
Contributor

Can confirm still being an issue, even with bitmap fonts.
From what I can tell it's a caching issue. Instead of blanking the changed lines in the font and coordinates of the console, it does so in the font and coordinates of the map. It's probably due to the rearranged sequence of draw_sidebar() and draw_ter() in #15828 .

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 a pull request may close this issue.

5 participants