mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-29 09:44:52 +01:00
Use dpi ref in misc drawing functions
This commit is contained in:
committed by
duncanspumpkin
parent
bb83a80eab
commit
91f4c1e752
@@ -396,7 +396,7 @@ public:
|
||||
screenPos = windowPos + ScreenCoordsXY{ bkWidget.left + 1, bkWidget.top + 1 };
|
||||
const auto clipWidth = bkWidget.width() - 1;
|
||||
const auto clipHeight = bkWidget.height() - 1;
|
||||
if (ClipDrawPixelInfo(&clipDPI, &dpi, screenPos, clipWidth, clipHeight))
|
||||
if (ClipDrawPixelInfo(clipDPI, dpi, screenPos, clipWidth, clipHeight))
|
||||
{
|
||||
object->DrawPreview(clipDPI, clipWidth, clipHeight);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user