1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00

do not draw windows twice on OpenGL

This commit is contained in:
Ted John
2016-06-05 12:54:29 +01:00
parent 8edc97bebe
commit ccec48e382
2 changed files with 3 additions and 1 deletions

View File

@@ -175,7 +175,6 @@ public:
glTranslatef(-1.0f, -1.0f, 0);
glScalef(2.0f / _width, 2.0f / _height, 0);
gfx_redraw_screen_rect(0, 0, _width - 1, _height - 1);
window_update_all_viewports();
gfx_redraw_screen_rect(0, 0, _width - 1, _height - 1);
window_update_all();

View File

@@ -293,7 +293,10 @@ public:
_rainDrawer.SetDPI(&_bitsDPI);
_rainDrawer.Restore();
// Redraw dirty regions before updating the viewports, otherwise
// when viewports get panned, they copy dirty pixels
DrawAllDirtyBlocks();
window_update_all_viewports();
DrawAllDirtyBlocks();
window_update_all();