mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-23 21:29:13 +02:00
infobar: fix tiny rendering
This commit is contained in:
parent
6c693f2920
commit
4ab9cdd75a
@ -401,11 +401,11 @@ void CInfoBar::prepareComponents(const std::vector<Component> & components, std:
|
|||||||
// Order matters - priority form should be chosen first
|
// Order matters - priority form should be chosen first
|
||||||
if(imageH + textH < CInfoBar::data_height)
|
if(imageH + textH < CInfoBar::data_height)
|
||||||
pushComponents(components, message, textH, false, timer);
|
pushComponents(components, message, textH, false, timer);
|
||||||
else if(!imageH && tinyH < CInfoBar::data_height)
|
else if(imageH + tinyH < CInfoBar::data_height)
|
||||||
pushComponents(components, message, tinyH, true, timer);
|
pushComponents(components, message, tinyH, true, timer);
|
||||||
else if(imageH + headerH < CInfoBar::data_height)
|
else if(imageH + headerH < CInfoBar::data_height)
|
||||||
pushComponents(components, header, headerH, false, timer);
|
pushComponents(components, header, headerH, false, timer);
|
||||||
else if(imageH + headerTinyH < CInfoBar::data_height - 2 * CInfoBar::offset)
|
else if(imageH + headerTinyH < CInfoBar::data_height)
|
||||||
pushComponents(components, header, headerTinyH, true, timer);
|
pushComponents(components, header, headerTinyH, true, timer);
|
||||||
else
|
else
|
||||||
pushComponents(components, "", 0, false, timer);
|
pushComponents(components, "", 0, false, timer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user