mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
Custom campaigns list: redraw parent as we use it's background
This one fix issue 2057
This commit is contained in:
@ -1213,6 +1213,7 @@ SelectionTab::SelectionTab(CMenuScreen::EState Type, const std::function<void(CM
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
bg = nullptr; //use background from parent
|
bg = nullptr; //use background from parent
|
||||||
|
type |= REDRAW_PARENT; // we use parent background so we need to make sure it's will be redrawn too
|
||||||
pos.w = parent->pos.w;
|
pos.w = parent->pos.w;
|
||||||
pos.h = parent->pos.h;
|
pos.h = parent->pos.h;
|
||||||
pos.x += 3; pos.y += 6;
|
pos.x += 3; pos.y += 6;
|
||||||
|
Reference in New Issue
Block a user