Comment 17 for bug 724169

Revision history for this message
Nicolai Hähnle (nha) wrote :

@SirVer: Why is the background of the soldiers list in your game white? It's supposed to be black. Very odd. Does OpenGL vs. software rendering make a difference?

On-topic: The way I've fixed this bug is to pre-compute the width of the soldier stats text. It is possible that this pre-computation is too conservative, and I happened not to notice because it's only a single pixel. It is also possible that - because this pre-computation works by computing the length of a line of text - subtle differences in font rendering libraries cause the difference. For example, if the freetype algorithms for kerning were tweaked between different versions, this might be enough to cause a one pixel difference.

@Astuur: Can you please try going to src/wui/soldierlist.cc, line 395, and change the "HP: 8/8 AT: 8/8 DE: 8/8 EV: 8/8" to let's say "HP: 8/8 AT: 8/8 DE: 8/8 EV: 8/8@". This should introduce enough slack to make the problem go away, but I'd like to get a confirmation on that.