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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user