Viewport: Cache landscape pixels in map mode
Avoid invalidating landscape pixels for non-landscape updates (vehicles, overlays, etc.)
This commit is contained in:
@@ -54,6 +54,7 @@ static bool SimulatedWormholeSignalsChanged(int32 p1);
|
||||
static bool EnableSingleVehSharedOrderGuiChanged(int32 p1);
|
||||
static bool CheckYapfRailSignalPenalties(int32 p1);
|
||||
static bool ViewportMapShowTunnelModeChanged(int32 p1);
|
||||
static bool ViewportMapLandscapeModeChanged(int32 p1);
|
||||
static bool UpdateLinkgraphColours(int32 p1);
|
||||
|
||||
static bool UpdateClientName(int32 p1);
|
||||
@@ -4137,21 +4138,21 @@ var = gui.viewport_map_scan_surroundings
|
||||
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
|
||||
def = true
|
||||
str = STR_CONFIG_SETTING_VIEWPORT_MAP_SCAN_SURROUNDINGS
|
||||
proc = RedrawScreen
|
||||
proc = ViewportMapLandscapeModeChanged
|
||||
|
||||
[SDTC_BOOL]
|
||||
var = gui.show_slopes_on_viewport_map
|
||||
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
|
||||
def = true
|
||||
str = STR_CONFIG_SETTING_VIEWPORT_MAP_SHOW_SLOPES
|
||||
proc = RedrawScreen
|
||||
proc = ViewportMapLandscapeModeChanged
|
||||
|
||||
[SDTC_BOOL]
|
||||
var = gui.show_bridges_on_map
|
||||
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
|
||||
def = true
|
||||
str = STR_CONFIG_SETTING_VIEWPORT_MAP_SHOW_BRIDGES
|
||||
proc = RedrawScreen
|
||||
proc = ViewportMapLandscapeModeChanged
|
||||
|
||||
[SDTC_BOOL]
|
||||
var = gui.show_tunnels_on_map
|
||||
@@ -4192,7 +4193,7 @@ var = gui.use_owner_colour_for_tunnelbridge
|
||||
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
|
||||
def = false
|
||||
str = STR_CONFIG_SETTING_VIEWPORT_MAP_USE_OWNER_COLOUR_BRIDGE_TUNNEL
|
||||
proc = RedrawScreen
|
||||
proc = ViewportMapLandscapeModeChanged
|
||||
|
||||
[SDTC_VAR]
|
||||
var = gui.show_scrolling_viewport_on_map
|
||||
|
Reference in New Issue
Block a user