mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-17 12:03:07 +01:00
fix drawing of object preview
We can't use dpi->width and dpi->height as they only define the clip region, not the viewport
This commit is contained in:
@@ -348,7 +348,7 @@ void RideObject::Unload()
|
||||
_legacyType.images_offset = 0;
|
||||
}
|
||||
|
||||
void RideObject::DrawPreview(rct_drawpixelinfo * dpi) const
|
||||
void RideObject::DrawPreview(rct_drawpixelinfo * dpi, sint32 width, sint32 height) const
|
||||
{
|
||||
uint32 imageId = _legacyType.images_offset;
|
||||
if (_legacyType.ride_type[0] == 0xFF)
|
||||
|
||||
Reference in New Issue
Block a user