The redrawing of the listbox bar and buttons seem to be broken,

...only drawn once and never updated afterwards. Add a hack to fix the
bar problem before 1.5.3, a real fix will follow later.
This commit is contained in:
Mark de Wever 2008-08-19 19:55:59 +00:00
parent c0c6f9be20
commit f1962d932d

View file

@ -365,6 +365,13 @@ void tlistbox::draw(surface& surface, const bool force,
// Inherited.
tcontainer_::draw(surface, force, invalidate_background);
/**
* @todo there seems to be a redraw bug with the scrollbar. Since we're in
* a rush for a release just force a redraw. The buttons are also broken
* but less important so leave them.
*/
scrollbar()->draw(surface, true, true);
if(invalidate_background) {
list_background_.assign(NULL);
}