1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-22 23:33:04 +01:00

Fix #5103: OpenGL: ride track preview not rendered

This commit is contained in:
Ted John
2019-05-01 20:51:55 +00:00
parent 6098c1c3cc
commit f842d8a693
14 changed files with 51 additions and 53 deletions

View File

@@ -2098,7 +2098,7 @@ bool window_is_visible(rct_window* w)
*/
void window_draw_all(rct_drawpixelinfo* dpi, int16_t left, int16_t top, int16_t right, int16_t bottom)
{
rct_drawpixelinfo windowDPI;
rct_drawpixelinfo windowDPI = *dpi;
windowDPI.bits = dpi->bits + left + ((dpi->width + dpi->pitch) * top);
windowDPI.x = left;
windowDPI.y = top;