CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.32k stars 4.14k forks source link

Leaves an image artifact. Part 2 #74073

Open IdleSol opened 4 months ago

IdleSol commented 4 months ago

Describe the bug

First part: #72065 I still have a stripe from the key binding window, at the bottom of the screen. But, it's not terrible, although it is annoying.

But, there are new artifacts. The cause of them is most likely the same.

Notice the image, there are no image artifacts in the image. We are interested in the highlighted part (lower part of the image). pict 1

And here's what you get after canceling the environment view (V): pict 2

It's easy to see that at the bottom of the screen, a portion of the past window remains.

This is because the sidebar does not occupy the entire height of the screen. And because, if I understood the explanation correctly, the new window is superimposed on top of the old one, without erasing the previous image.

Attach save file

Патерсон-trimmed.tar.gz

Steps to reproduce

  1. Change the position of the sidebar widgets (see additional context for widget order)
  2. Look around (V) or call up the craft menu (&).
  3. Look at the artifacts in the sidebar.

Expected behavior

No artifacts

Screenshots

No response

Versions and configuration

Additional context

Normally, the sidebar takes up the entire height of the screen and I don't encounter such problems. But because of frequent language changes, I sometimes make a mistake and save the world using a different locale. That is, the Russian world is saved with English selected. This causes the sidebar settings to fail. Read more:

Exactly such a failure you can see in the image. That's why I additionally attach a screenshot with the sequence of widgets. pict 3

IdleSol commented 4 months ago

I did some additional testing. (Checked on older versions). I was wrong, ImGui is not to blame here. On version 2023-12-01-0145 you can get a similar error if the bottom widgets are compass and radiation.

UPD. Linux 0.G - this error is reproduced. I do not have earlier versions.

TealcOneill commented 4 months ago

/confirm Any space on the widgetbar not taken up by widgets will have the contents of any other bar that appears over the top of it.