mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
battleonly gui
This commit is contained in:
@@ -65,6 +65,8 @@ Rect CanvasImage::contentRect() const
|
||||
|
||||
Point CanvasImage::dimensions() const
|
||||
{
|
||||
if (scalingPolicy != CanvasScalingPolicy::IGNORE)
|
||||
return Point(surface->w, surface->h) / ENGINE->screenHandler().getScalingFactor();
|
||||
return {surface->w, surface->h};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user