(svn r6368) -Fix [FS#136]: Station catchment area persists after switching tools. The
authorDarkvater
Sun, 03 Sep 2006 22:39:02 +0000
changeset 4539 0b13858554fb
parent 4538 03b675e3ac05
child 4540 2f70d57828e1
(svn r6368) -Fix [FS#136]: Station catchment area persists after switching tools. The
correct fix was to reset the highlight box if any size changes (grimrc)
dock_gui.c
viewport.c
--- a/dock_gui.c	Sun Sep 03 22:27:13 2006 +0000
+++ b/dock_gui.c	Sun Sep 03 22:39:02 2006 +0000
@@ -233,11 +233,7 @@
 
 		rad = (_patches.modified_catchment) ? CA_DOCK : 4;
 
-		if (_station_show_coverage) {
-			SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad);
-		} else {
-			SetTileSelectBigSize(0, 0, 0, 0);
-		}
+		if (_station_show_coverage) SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad);
 
 		DrawStationCoverageAreaText(4, 50, (uint)-1, rad);
 		break;
--- a/viewport.c	Sun Sep 03 22:27:13 2006 +0000
+++ b/viewport.c	Sun Sep 03 22:39:02 2006 +0000
@@ -1894,7 +1894,9 @@
 	// redraw selection
 	if (_thd.drawstyle != _thd.new_drawstyle ||
 			_thd.pos.x != _thd.new_pos.x || _thd.pos.y != _thd.new_pos.y ||
-			_thd.size.x != _thd.new_size.x || _thd.size.y != _thd.new_size.y) {
+			_thd.size.x != _thd.new_size.x || _thd.size.y != _thd.new_size.y ||
+	    _thd.outersize.x != _thd.new_outersize.x ||
+	    _thd.outersize.y != _thd.new_outersize.y) {
 		// clear the old selection?
 		if (_thd.drawstyle) SetSelectionTilesDirty();