File diff r11362:d9d4adbc4779 → r11363:6906c490a00e
src/smallmap_gui.cpp
Show inline comments
 
@@ -593,13 +593,13 @@ public:
 
			const Company *c;
 

	
 
			/* fill with some special colours */
 
			_owner_colours[OWNER_TOWN] = MKCOLOUR(0xB4B4B4B4);
 
			_owner_colours[OWNER_NONE] = MKCOLOUR(0x54545454);
 
			_owner_colours[OWNER_WATER] = MKCOLOUR(0xCACACACA);
 
			_owner_colours[OWNER_END]   = MKCOLOUR(0x20202020); /* industry */
 
			_owner_colours[OWNER_END]   = MKCOLOUR(0x20202020); // industry
 

	
 
			/* now fill with the company colours */
 
			FOR_ALL_COMPANIES(c) {
 
				_owner_colours[c->index] =
 
					_colour_gradient[c->colour][5] * 0x01010101;
 
			}
 
@@ -643,13 +643,13 @@ public:
 
				mask = _smallmap_mask_left[x + 3];
 
			}
 

	
 
			/* distance from right edge */
 
			t = dpi->width - x;
 
			if (t < 4) {
 
				if (t <= 0) break; /* exit loop */
 
				if (t <= 0) break; // exit loop
 
				/* mask to use at the right edge */
 
				mask &= _smallmap_mask_right[t - 1];
 
			}
 

	
 
			/* number of lines */
 
			reps = (dpi->height - y + 1) / 2;