This is the mail archive of the
xconq-cvs@sourceware.cygnus.com
mailing list for the Xconq project.
xconq/ /ChangeLog ernel/Makefile.in ernel/keyw ...
- To: xconq-cvs@sourceware.cygnus.com
- Subject: xconq/ /ChangeLog ernel/Makefile.in ernel/keyw ...
- From: shebs@sourceware.cygnus.com
- Date: 15 Jun 1999 01:51:35 -0000
CVSROOT: /cvs/xconq
Module name: xconq
Changes by: shebs@egcs.cygnus.com 99/06/14 18:51:34
Modified files:
. : ChangeLog
kernel : Makefile.in keyword.def imf.c imf.h
tcltk : tkimf.c tkinit.c tkmap.c
Added files:
kernel : gif.c
Log message:
Add support for reading images from GIFs directly, plus ability
to collect multiple images from a single "file image".
* kernel/gif.c: New file, GIF reader lifted from NetPBM.
* kernel/Makefile.in: Compile it.
* keyword.def (file): New keyword.
* imf.h (Image filedata, file_image, subimages): New slots.
(FileImage): New structure.
* imf.c (K_FILE_): New enum.
(file_images): New global.
(get_img): Replace dummy style arg with subimage arg.
(get_subimg): New function.
(interp_image): Recognize connection and border images, and
images whose data is in a file.
(make_image_from_file_image): New function.
(add_shrunken_image, add_magnified_image): Call it.
(best_image): Rewrite to handle images that are mixes of
regular images and tiles.
(get_file_image, load_file_image): New functions.
* ui.c (halfsides): New global array.
* tkimf.c (tk_interp_image): Add subimg arg, change callers,
call make_image_from_file_image and self recursively.
* tkinit.c (bordpics, connpics, rrpics): Remove, no longer needed.
* tkmap.c (set_terrain_gc_for_image): Only do for tiles.
(draw_unseen_fuzz): Use halfsides array.
(draw_borders, draw_connections): Rewrite to use subimages.