mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-07 04:56:25 +00:00
Properly redraw the scrollbar container's content.
Before the background also updated the content, which made the text getting redrawn to often on top of itself and got ugly.
This commit is contained in:
parent
b641bdb0ac
commit
e658ecd86b
@ -459,11 +459,16 @@ void tscrollbar_container::
|
||||
}
|
||||
|
||||
void tscrollbar_container::impl_draw_background(surface& frame_buffer)
|
||||
{
|
||||
// Inherited.
|
||||
tcontainer_::impl_draw_background(frame_buffer);
|
||||
}
|
||||
|
||||
void tscrollbar_container::impl_draw_children(surface& frame_buffer)
|
||||
{
|
||||
// Inherited.
|
||||
tcontainer_::impl_draw_background(frame_buffer);
|
||||
|
||||
// Draw.
|
||||
content_grid_->draw_children(frame_buffer);
|
||||
}
|
||||
|
||||
|
@ -244,6 +244,9 @@ private:
|
||||
/** Inherited from tcontainer_. */
|
||||
void impl_draw_background(surface& frame_buffer);
|
||||
|
||||
/** Inherited from tcontainer_. */
|
||||
void impl_draw_children(surface& frame_buffer);
|
||||
|
||||
/** Inherited from tcontainer_. */
|
||||
void impl_draw_foreground(surface& frame_buffer);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user