This is the mail archive of the
xconq-cvs@sources.redhat.com
mailing list for the Xconq project.
xconq ./ChangeLog sdl/sdlcmd.c sdl/sdlconq.h s ...
- To: xconq-cvs at sourceware dot cygnus dot com
- Subject: xconq ./ChangeLog sdl/sdlcmd.c sdl/sdlconq.h s ...
- From: shebs at sourceware dot cygnus dot com
- Date: 16 Mar 2001 13:16:38 -0000
CVSROOT: /cvs/xconq
Module name: xconq
Changes by: shebs@sources.redhat.com 2001-03-16 05:16:37
Modified files:
. : ChangeLog
sdl : sdlcmd.c sdlconq.h sdlmain.c sdlmap.c
sdlscreen.c
Log message:
Add display of world map as minimap in bottom panel.
* sdlconq.h (Screen minimap): New field.
(Screen number, terrain_patterns): Remove, never used.
(Map sx, sy, is_world): New fields.
* sdlmain.c (default_draw_terrain_patterns): Remove, never used.
(point_in_map): New function.
(autoscroll): Add explicit map and minimap handling, remove
"vp" and "which" args.
(ui_mainloop, update_mouseover_x): Update autoscroll call.
(set_current_unit): Call update_unit_info instead of draw_unit_info.
(update_mouseover_x): Use point_in_map.
(s_nearest_cell): Adjust for map position.
(update_unit_display): Call draw_unit_info instead of
update_unit_info.
* sdlscreen.c (open_screen): Call create_map to create maps,
add creation of minimap.
(set_panel_position): New function.
(set_panel_sizes): Call it, adjust panels according to type.
(add_update): Do clipping into args.
(draw_unit_info): Make this do the drawing of unit info
strings only, improve string position calcs.
(update_unit_info): New function.
(draw_world_map): Fill it in.
(draw_line): New function, only does horizontal and vertical
right now.
* sdlmap.c (create_map): New function.
(draw_map_outline): New function.
(draw_map): Call it.
(xform): Adjust for map position.
* sdlmain.c (set_tool_cursor): Remove "which" arg, simplify.
* sdlmain.c (autoscroll, handle_event): Update call.
* sdlcmd.c (do_survey, do_design): Ditto.
* sdlconq.h: Update decl.