smallmap_gui.c
changeset 12 689a3309cd1c
parent 0 29654efe3188
child 152 c3964b43943e
equal deleted inserted replaced
11:836bc4b37b5b 12:689a3309cd1c
   349 
   349 
   350 static void DrawSmallMapContours(byte *dst, uint xc, uint yc, int pitch, int reps, uint32 mask)
   350 static void DrawSmallMapContours(byte *dst, uint xc, uint yc, int pitch, int reps, uint32 mask)
   351 {
   351 {
   352 	do {
   352 	do {
   353 		if (xc < TILE_X_MAX && yc < TILE_Y_MAX)
   353 		if (xc < TILE_X_MAX && yc < TILE_Y_MAX)
   354 			WRITE_PIXELS_OR( dst, GetSmallMapCountoursPixels(TILE_XY(xc,yc)) & mask );
   354 		    if (dst > _screen.dst_ptr && dst < (_screen.dst_ptr + _screen.width * _screen.height - _screen.width) )
       
   355 		        WRITE_PIXELS_OR( dst, GetSmallMapCountoursPixels(TILE_XY(xc,yc)) & mask );
   355 	} while (xc++,yc++,dst+=pitch,--reps != 0);
   356 	} while (xc++,yc++,dst+=pitch,--reps != 0);
   356 }
   357 }
   357 
   358 
   358 
   359 
   359 static uint32 INLINE GetSmallMapVehiclesPixels(uint tile)
   360 static uint32 INLINE GetSmallMapVehiclesPixels(uint tile)