1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

reinstate all drawing and fix resize

This commit is contained in:
Ted John
2016-06-03 00:29:02 +01:00
parent 3da57d0865
commit 85557d169d
4 changed files with 14 additions and 9 deletions

View File

@@ -22,6 +22,7 @@ extern "C"
{
#include "../../config.h"
#include "../drawing.h"
#include "../../interface/window.h"
}
struct DirtyGrid
@@ -75,9 +76,6 @@ public:
void Resize(uint32 width, uint32 height) override
{
_width = width;
_height = height;
SDL_FreeSurface(_surface);
SDL_FreeSurface(_RGBASurface);
SDL_FreePalette(_palette);
@@ -152,7 +150,14 @@ public:
void Draw() override
{
redraw_rain();
DrawAllDirtyBlocks();
window_update_all_viewports();
DrawAllDirtyBlocks();
window_update_all();
rct2_draw();
Display();
}