author | truelight |
Tue, 10 Aug 2004 17:23:21 +0000 | |
changeset 12 | 689a3309cd1c |
parent 11 | 836bc4b37b5b |
child 13 | 3e7c1f74a996 |
smallmap_gui.c | file | annotate | diff | comparison | revisions |
--- a/smallmap_gui.c Tue Aug 10 17:06:10 2004 +0000 +++ b/smallmap_gui.c Tue Aug 10 17:23:21 2004 +0000 @@ -351,7 +351,8 @@ { do { if (xc < TILE_X_MAX && yc < TILE_Y_MAX) - WRITE_PIXELS_OR( dst, GetSmallMapCountoursPixels(TILE_XY(xc,yc)) & mask ); + if (dst > _screen.dst_ptr && dst < (_screen.dst_ptr + _screen.width * _screen.height - _screen.width) ) + WRITE_PIXELS_OR( dst, GetSmallMapCountoursPixels(TILE_XY(xc,yc)) & mask ); } while (xc++,yc++,dst+=pitch,--reps != 0); }