mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-24 03:47:18 +02:00
Quest Log: fix position of selection box on labels
This commit is contained in:
parent
c046f8ddc6
commit
c978bc862d
@ -178,7 +178,10 @@ void CQuestLog::showAll(SDL_Surface * to)
|
||||
}
|
||||
if (labels.size() && labels[questIndex]->active)
|
||||
{
|
||||
CSDL_Ext::drawBorder(to, Rect::around(labels[questIndex]->pos), int3(Colors::METALLIC_GOLD.r, Colors::METALLIC_GOLD.g, Colors::METALLIC_GOLD.b));
|
||||
Rect rect = Rect::around(labels[questIndex]->pos);
|
||||
rect.x -= 2; // Adjustment needed as we want selection box on top of border in graphics
|
||||
rect.w += 2;
|
||||
CSDL_Ext::drawBorder(to, rect, int3(Colors::METALLIC_GOLD.r, Colors::METALLIC_GOLD.g, Colors::METALLIC_GOLD.b));
|
||||
}
|
||||
description->show(to);
|
||||
minimap->show(to);
|
||||
|
Loading…
x
Reference in New Issue
Block a user