equal
deleted
inserted
replaced
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) |