0ad/source
Vantha 931c132b1b Fix brief text misalignment in GUI text objects
The issue was introduced by 8a2a450686.
It affected GUI text objects (CText) with `scrollbar` set to true; when
their caption was long enough for a scrollbar to be visible and then the
size changed (got bigger) so that no scrollbar was needed anymore, then
for a single frame the text was completely misaligned. This happened
because in `CText::Draw` the scrollbar wasn't updated yet, so the newly
added `GetScrollBar(0).IsVisible()` check still returned true, even
though it wouldn't end up being rendered anyway -- it was updated in
`IGUITextOwner::DrawText` eventually.

This happened to the tutorial info panel in the starting economy
walkthrough, for example. Note: in that case the scrollbar wasn't ever
drawn, but it was temporarily set visible within a frame by the JS
object resizing logic.
2026-07-22 23:51:49 +02:00
..
collada Fix some includes all over the place 2025-08-14 20:15:30 +02:00
dapinterface Move Script* classes to Script namespace 2026-06-20 17:43:00 +02:00
graphics Removes std::shared_ptr usages from particles 2026-07-13 01:01:03 +02:00
gui Fix brief text misalignment in GUI text objects 2026-07-22 23:51:49 +02:00
i18n Move Script* classes to Script namespace 2026-06-20 17:43:00 +02:00
lib Uses std::string_view for UTF-8 conversions 2026-07-14 00:14:27 +02:00
lobby Re-use XMPP resource GUID for whole app runtime 2026-07-01 15:36:51 +02:00
maths Replace M_PI with C++ numbers 2026-06-04 20:29:48 +02:00
network Move Script* classes to Script namespace 2026-06-20 17:43:00 +02:00
pch Compute actual size of GUI objects lazily 2026-04-12 00:17:02 +02:00
ps Replace old GetState and SetState calls 2026-07-22 23:51:49 +02:00
renderer Fixes missing window preview on Alt+Tab 2026-07-14 19:54:00 +02:00
rlinterface Uses std::string_view for Script::Interface::Eval 2026-07-13 23:53:24 +02:00
scriptinterface Uses std::string_view for Script::Interface::Eval 2026-07-13 23:53:24 +02:00
simulation2 Replace old GetState and SetState calls 2026-07-22 23:51:49 +02:00
soundmanager Makes GameView returning reference on camera 2026-06-28 17:57:16 +02:00
third_party Removes extensions prior 2.1 2026-07-08 09:28:52 +02:00
tools Convert wxString using ToStdWstring 2026-07-22 16:49:41 +02:00
CxxTestRunner.tpl Use return instead of exit in testrunner 2025-10-15 18:17:24 +02:00
main.cpp Move Script* classes to Script namespace 2026-06-20 17:43:00 +02:00
test_setup.cpp Move Script* classes to Script namespace 2026-06-20 17:43:00 +02:00