Index: mapview.c =================================================================== RCS file: /home/freeciv/CVS/freeciv/client/mapview.c,v retrieving revision 1.28 diff -u -r1.28 mapview.c --- mapview.c 1999/03/15 11:48:23 1.28 +++ mapview.c 1999/03/18 06:42:35 @@ -769,6 +769,34 @@ pixmap_put_tile(map_canvas_store, x, y, (map_view_x0+x)%map.xsize, map_view_y0+y, 0); + { /* draw some grid lines... */ + static int type=0; if(!tile_x && !tile_y) type++; + + if(type&1) /* use dashed lines */ + XSetLineAttributes(display, civ_gc, 0, LineOnOffDash, CapNotLast, + JoinMiter); + + if(type&2) /* black lines */ + XSetForeground(display, civ_gc, colors_standard[COLOR_STD_BLACK]); + else { /* or XOR lines */ + XSetForeground(display, civ_gc, 0xffffff); + XSetFunction(display, civ_gc, GXxor); + } + + for(x=tile_x; x<=tile_x+width; x++) + XDrawLine(display, map_canvas_store, civ_gc, + x*NORMAL_TILE_WIDTH, tile_y*NORMAL_TILE_HEIGHT, + x*NORMAL_TILE_WIDTH, (tile_y+height)*NORMAL_TILE_HEIGHT); + for(y=tile_y; y<=tile_y+height; y++) + XDrawLine(display, map_canvas_store, civ_gc, + tile_x*NORMAL_TILE_WIDTH, y*NORMAL_TILE_HEIGHT, + (tile_x+width)*NORMAL_TILE_WIDTH, y*NORMAL_TILE_HEIGHT); + + XSetLineAttributes(display, civ_gc, 0, LineSolid, CapNotLast, JoinMiter); + XSetFunction(display, civ_gc, GXcopy); + } + + if(write_to_screen) { XCopyArea(display, map_canvas_store, XtWindow(map_canvas), civ_gc,