mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 04:53:12 +01:00
Use dpi ref in misc drawing functions
This commit is contained in:
committed by
duncanspumpkin
parent
bb83a80eab
commit
91f4c1e752
@@ -1057,7 +1057,7 @@ public:
|
||||
auto screenPos = windowPos + ScreenCoordsXY{ previewWidget.left + 1, previewWidget.top + 1 };
|
||||
_width = previewWidget.width() - 1;
|
||||
int32_t _height = previewWidget.height() - 1;
|
||||
if (ClipDrawPixelInfo(&clipDPI, &dpi, screenPos, _width, _height))
|
||||
if (ClipDrawPixelInfo(clipDPI, dpi, screenPos, _width, _height))
|
||||
{
|
||||
_loadedObject->DrawPreview(clipDPI, _width, _height);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user