This is the mail archive of the
xconq-cvs@sources.redhat.com
mailing list for the Xconq project.
xconq ./ChangeLog lib/imf.dir kernel/gvar.def ...
- To: xconq-cvs at sourceware dot cygnus dot com
- Subject: xconq ./ChangeLog lib/imf.dir kernel/gvar.def ...
- From: shebs at sourceware dot cygnus dot com
- Date: 19 Jan 2001 18:06:21 -0000
CVSROOT: /cvs/xconq
Module name: xconq
Changes by: shebs@sources.redhat.com 2001-01-19 10:06:21
Modified files:
. : ChangeLog
lib : imf.dir
kernel : gvar.def
sdl : sdlcmd.c sdlconq.h sdlimf.c sdlinit.c sdlmain.c
sdlmap.c
Added files:
images : cursors.gif
lib : cursors.imf
Removed files:
images : cursor.bmp
Log message:
Add support for multiple cursors specified by GDL, also some
general simplification and cleanup for commands. (Much of the
code is adapted from the tcltk interface.)
* gvar.def (attack-cursor, generic-cursor, survey-cursor): New
globals.
* sdlconq.h (enum mapmode): Add no_mode value.
(Cursor): New structure.
(UI cursors): New field.
(Map cursor): New field.
(Map modalhandler): Remove useless side argument.
(curs): Remove, no longer used.
* sdlinit.c (init_display): Add cursor setup, report of
missing images.
(get_cursor): New function, creates a cursor from image name.
(init_other_images): Improve image desc for blasts and transitions.
(sdl_describe_image): Implement.
(report_missing_images): New function.
* sdlmain.c (default_cursor_name, generic_cursor, use_cursors):
New globals.
(initial_ui_init): Use get_cursor to set up generic cursor,
set up imf_interp_hook earlier.
(handle_event): Use add_update and update_mouseover_x.
(interp_key): Add modal handler and prefix code from tcltk version.
(update_mouseover_x): New function, handle cursor change.
(could_attack): New function.
(update_mouseover): New function.
(ask_unit_type, grok_unit_type, help_unit_type, etc): Make all
these work by printing the prompts to stdout for now, remove
useless side argument.
(set_tool_cursor): Implement.
* sdlmap.c (open_sdl_window): Set initial values for map mode,
etc.
(redraw_map): Use add_update.
(update_map): Use map->cursor instead of global, account for
cursor hotspot position.
(draw_random_color_rect): Remove, change callers to use
draw_rect with random_color.
(add_update): Detect overflow of update buffer and redraw.
* sdlcmd.c: Remove useless side argument from all modal
handlers, use dside where necessary instead, also change
calls to ask_ and grok_ functions.
* sdlimf.c (sdl_load_imf): Remove, not needed.
(sdl_interp_image_1): Remove unused local namebuf.
(sdl_copy_color_image): Declare static void, remove unused local.
* lib/cursors.imf: New file, cursor image families.
* images/cursors.gif: New file, cursor images.
* images/cursor.bmp: Remove, no longer needed.
* imf.dir: Record them.