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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user