Merge branch 'master' into jgrpp
# Conflicts: # CMakeLists.txt # src/saveload/town_sl.cpp # src/screenshot.h # src/script/api/ai/ai_date.hpp.sq # src/script/api/ai/ai_marine.hpp.sq # src/script/api/ai/ai_station.hpp.sq # src/script/api/game/game_date.hpp.sq # src/script/api/game/game_marine.hpp.sq # src/script/api/game/game_station.hpp.sq # src/script/api/game/game_window.hpp.sq # src/script/api/script_window.hpp # src/script/api/template/template_window.hpp.sq # src/signal.cpp # src/statusbar_gui.cpp # src/toolbar_gui.cpp # src/viewport.cpp # src/viewport_func.h
This commit is contained in:
@@ -1439,7 +1439,7 @@ void RedrawScreenRect(int left, int top, int right, int bottom)
|
||||
}
|
||||
|
||||
static std::vector<Rect> _dirty_viewport_occlusions;
|
||||
static ViewPort *_dirty_viewport;
|
||||
static Viewport *_dirty_viewport;
|
||||
static NWidgetDisplay _dirty_viewport_disp_flags;
|
||||
|
||||
static void DrawDirtyViewport(uint occlusion, int left, int top, int right, int bottom)
|
||||
@@ -1484,7 +1484,7 @@ static void DrawDirtyViewport(uint occlusion, int left, int top, int right, int
|
||||
if (_game_mode == GM_MENU) {
|
||||
RedrawScreenRect(left, top, right, bottom);
|
||||
} else {
|
||||
extern void ViewportDrawChk(ViewPort *vp, int left, int top, int right, int bottom);
|
||||
extern void ViewportDrawChk(Viewport *vp, int left, int top, int right, int bottom);
|
||||
ViewportDrawChk(_dirty_viewport, left, top, right, bottom);
|
||||
if (_dirty_viewport_disp_flags & (ND_SHADE_GREY | ND_SHADE_DIMMED)) {
|
||||
GfxFillRect(left, top, right, bottom,
|
||||
@@ -1584,7 +1584,7 @@ void DrawDirtyBlocks()
|
||||
}
|
||||
|
||||
if (w->viewport != nullptr && !w->IsShaded()) {
|
||||
ViewPort *vp = w->viewport;
|
||||
Viewport *vp = w->viewport;
|
||||
if (vp->is_drawn) {
|
||||
vp->ClearDirty();
|
||||
} else if (vp->is_dirty) {
|
||||
|
Reference in New Issue
Block a user