Summary: New credits won't display if too many entries are
Project: Battle for Wesnoth
Submitted by: vultraz
Submitted on: Fri 16 Sep 2016 08:29:50 AM UTC
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None of the others
Assigned to: None
Discussion Lock: Any
Operating System: Windows 10
This affects the new GUI2 credits dialogs.
Rather a corner case, since it works fine with mainline credits and mainline
campaigns' credits, but if one has too many addon campaigns (with credits, of
course) installed, the text will not show.
This is possibly due to the surface becoming too large. However, no tests seem
to indicate that fact, including a read of SDL_GetError() when the text
surface is created and any intermediate validation steps in the GUI2 canvas as
it makes it way to render.
I have also tested whether this is due to some cropping calculation due to the
scrollbar positioner becoming too small, but that does not seem to be the case
For all intents and purposes, the text is placed (and can even be queried with
.label()), but just doesn't show. This can also be triggered if you have
"enough" addon campaigns with credits installed and change the label
definition to "default_large".
Again, a possibility is the surface being too large, but someone more
knowledgeable than I in SDL_Surface's internals will have to look into this.
Reply to this item at:
Message sent via/by Gna!
Wesnoth-bugs mailing list