1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

show building names with ALT

This commit is contained in:
Laserlicht
2024-12-26 14:18:25 +01:00
parent ec25eb557b
commit eb319fc15e
7 changed files with 78 additions and 1 deletions

View File

@@ -388,6 +388,13 @@ bool SDLImageShared::isTransparent(const Point & coords) const
return true;
}
Rect SDLImageShared::contentRect() const
{
auto tmpMargins = margins / preScaleFactor;
auto tmpSize = Point(surf->w, surf->h) / preScaleFactor;
return Rect(tmpMargins, tmpSize);
}
Point SDLImageShared::dimensions() const
{
return fullSize / preScaleFactor;
@@ -621,6 +628,11 @@ bool SDLImageBase::isTransparent(const Point & coords) const
return image->isTransparent(coords);
}
Rect SDLImageBase::contentRect() const
{
return image->contentRect();
}
Point SDLImageBase::dimensions() const
{
return image->dimensions();