1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

battleonly gui

This commit is contained in:
Laserlicht
2025-10-19 15:10:43 +02:00
parent 104fb5b308
commit ed562e42ba
16 changed files with 529 additions and 69 deletions

View File

@@ -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};
}