mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-17 20:13:07 +01:00
Fix viewport clipping issues with the OpenGL renderer (#6188)
This commit is contained in:
@@ -927,8 +927,8 @@ void OpenGLDrawingContext::SetDPI(rct_drawpixelinfo * dpi)
|
||||
_clipLeft = (sint32)(bitsOffset % (screenDPI->width + screenDPI->pitch));
|
||||
_clipTop = (sint32)(bitsOffset / (screenDPI->width + screenDPI->pitch));
|
||||
|
||||
_clipRight = _clipLeft + dpi->width;
|
||||
_clipBottom = _clipTop + dpi->height;
|
||||
_clipRight = _clipLeft + (dpi->width >> dpi->zoom_level);
|
||||
_clipBottom = _clipTop + (dpi->height >> dpi->zoom_level);
|
||||
_offsetX = _clipLeft - dpi->x;
|
||||
_offsetY = _clipTop - dpi->y;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user