Konstantin 2 лет назад
Родитель
Сommit
5462a92930
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      client/adventureMap/CInfoBar.cpp

+ 1 - 1
client/adventureMap/CInfoBar.cpp

@@ -170,7 +170,7 @@ CInfoBar::VisibleComponentInfo::VisibleComponentInfo(const std::vector<Component
 	OBJECT_CONSTRUCTION_CAPTURING(255-DISPOSE);
 	OBJECT_CONSTRUCTION_CAPTURING(255-DISPOSE);
 
 
 	background = std::make_shared<CPicture>("ADSTATOT", 1, 0);
 	background = std::make_shared<CPicture>("ADSTATOT", 1, 0);
-	auto fullRect = Rect(0, 0, data_width, data_height);
+	auto fullRect = Rect(CInfoBar::offset, CInfoBar::offset, data_width - 2 * CInfoBar::offset, data_height - 2 * CInfoBar::offset);
 	auto textRect = fullRect;
 	auto textRect = fullRect;
 	auto imageRect = fullRect;
 	auto imageRect = fullRect;
 	auto font = FONT_SMALL;
 	auto font = FONT_SMALL;