| Protocol: | pserver | User: | anonymous |
| Machine: | cvs.sourceforge.net | CVSROOT: | /cvsroot/crossfire |
|
Filename: xutil.c | |||
| Revision 1.24 | akirschbaum | 2006/02/23 20:18:29 | +3 -3 |
|
Apply patch #1433271 (code-cleanup) by Stefan Huehner: Add const and static, remove unused variables | |||
| Show difference between Revision 1.23 and 1.24 | |||
| Revision 1.23 | akirschbaum | 2006/02/16 22:32:47 | +5 -5 |
|
Apply patch #1430279 (code-cleanup: const, static, etc) by Stefan Huehner. | |||
| Show difference between Revision 1.22 and 1.23 | |||
| Revision 1.22 | cavesomething | 2006/01/31 14:22:28 | +10 -23 |
|
remove coloured inventory and text options and support for black and white monitors, change cfclient to a grey colourscheme | |||
| Show difference between Revision 1.21 and 1.22 | |||
| Revision 1.21 | akirschbaum | 2005/08/31 21:57:23 | +3 -319 |
|
Fix bug #1102991 (Duplicate grapical display of the same monster): common/Makefile.am: Add new files mapdata.c and mapdata.h. common/{client.c, commands.c}: Tell mapdata module the current display size. common/commands.c: Remove functions to handle map updates. Rewrite map1_common() to pass information into mapdata module. common/init.c, gtk/gx11.c: Add new config options -mapscroll and -nomapscroll to enable/disable scrolling the map view with bitmap operations. common/mapdata.[ch]: Add new module to handle all updates to the_map. gtk/gx11.c: Remove code for #if ALTERNATE_MAP_REDRAW. Initialize question mark face for fog of war. Remove code to allocate the_map. gtk/image.c: Do not clear the_map in reset_image_data() anymore. gtk/map.c: Move code to update map data into mapdata module. draw_pixmap(): New function to draw one face. drawsmooth(): Check correct layer instead of fixed layer zero. Fix out of bounds array access. display_mapcell(): New function to draw one cell. gtk_draw_map(): Move map drawing code into display_mapcell(). gtk/sdl.c: Basically the same changes as in gtk/map.c gtk-v2/src/image.c: Basically the same changes as in gtk/gx11.c. gtk-v2/src/main.c: Add config options -smooth/-nosmooth to enable/disable smoothing. Remove code to allocate the_map. gtk-v2/src/map.c: Basically the same changes as in gtk/map.c. gtk-v2/src/opengl.c: Fix out of bounds array access. Initialize question mark face for fog of war. gtk-v2/src/sdl.c: Basically the same changes as in gtk/map.c. x11/x11.c: Implement map scrolling by using XCopyArea(). Add config options -mapscroll/-nomapscroll to enable/disable this. Remove code to allocate or clear the_map. Add new function display_mapcell() to draw one cell. Move map drawing code from display_map_doneupdate() into display_mapcell(). Remove two pixel border around map window; is was used inconsistently, and the window size was four pixels too small. x11/xutil.c: Move code to update map data into mapdata module. | |||
| Show difference between Revision 1.20 and 1.21 | |||
| Revision 1.20 | akirschbaum | 2005/08/14 13:03:07 | +2 -2 |
|
x11/x11proto.h, x11/xutil.c: Use correct parameter type "uint16" for addsmooth(). | |||
| Show difference between Revision 1.19 and 1.20 | |||
| Revision 1.19 | akirschbaum | 2005/03/27 20:51:25 | +3 -9 |
|
This patch fixes a few memory leaks related to image caching in all clients. common/image.c: Declare facetoname[] as static. Add all code accessing this array. Print warning if image cannot be created. gtk/gx11.c, gtk/image.c, gtk-v2/src/image.c, x11/x11.c, x11/xutil.c: Remove code accessing facetoname[]. gtk/gx11.c, gtk-v2/src/main5H.c, x11/x11.c: Always call init_cache_data() to initialize pixmaps[] array. gtk/image.c, gtk-v2/src/image.c, x11/png.c: Reject invalid face numbers and fix resource leak in create_and_rescale_image_from_data(). gtk/image.c, gtk-v2/src/image.c, get_map_image_size: Pretend invalid faces to be of size 1x1 in get_map_image_size(). gtk-v2/src/image.c: Properly free opengl resources in free_pixmap(). Fix resource leak when freeing old pixmaps in reset_image_data(). x11/png.c: Properly free resources if an error occurs. x11/x11.c: Ignore invalid face numbers. x11/x11.h Remove duplicate definition of MAXPIXMAPNUM and facetoname[]. x11/xutil.c: Initialize size of pixmaps[0]. | |||
| Show difference between Revision 1.18 and 1.19 | |||
| Revision 1.18 | mwedel | 2005/03/22 07:23:00 | +8 -2 |
|
Main change of this is addition of opengl drawing for the map in the gtk-v2 client. On my system, the opengl code is about 10 times faster than the sdl code was, making it so I can turn on all the bells and whistles (smoothing, best lighting) and still use less than 10% cpu time. As part of this, I redid the smoothing logic, so the client now requires a new server for smoothing to work (needs push logic, as client won't request smoothing info as that adds a lot of complication). This change was done because the old smoothing code wasn't that efficient - now, we store the smoothing face along with the face it smooths, so finding the smoothing info is much faster. -- configure.in, configure: Add check for -lglut - indication we have opengl libraries available. common/client.h: Remove Smooths struct. Change CONFIG_SDL to CONFIG_DISPLAY, and add CFG_DM_... to denote different display modes, since there is more than just sdl and not sdl now. common/commands.c: Don't have SmoothCmd try to update what spaces need to be redrawn - for opengl, it doesn't care about that, and for most other maps, it will figure it out when it needs to redraw anyways. common/config.h.in: Addition of HAVE_OPENGL line. common/image.c: Remove getsmooth() - rely on push logic. common/init.c: Update want_config[CONFIG_SDL] to want_config[CONFIG_DISPLAYMODE] gtk/config.c: Change access to CONFIG_DISPLAYMODE gtk/gx11.c: Change access to CONFIG_DISPLAYMODE. Add -smooth command line option. gtk/gx11.h: Add smooth_face to PixmapInfo struct. gtk/image.c: Change access to CONFIG_DISPLAYMODE. When getting new PixmapInfo struct, use calloc so we are sure all fields are initialized to zero. Add addsmooth(). gtk/map.c: Change access to CONFIG_DISPLAYMODE. Change how we access smooth face info. gtk/sdl.c: Change how we access smooth face info. gtk-v2/src/Makefile.am, gtk-v2/src/Makefile.in: Add addition of OPENGL_LIBS to link libs. Add opengl.c file. gtk-v2/src/config.c: Add image.h include. gtk-v2/src/gtk2proto.h: Rebuilt. gtk-v2/src/image.c: Change access to CONFIG_DISPLAYMODE. Add hooks for opengl image generation. Change call for pixmap creation from malloc to calloc. Add addsmooth(). gtk-v2/src/image.h. If we have opengl, include GL/gl.h. Add fields for opengl texture maps. gtk-v2/src/info.c: Update so text line wraps if it is too long. gtk-v2/src/inventory.c: Add checks to make sure object face is valid before trying to draw. In icon mode, add code to cleanup old fields (if you drop an item, it wouldn't erase the list item in the list). Also, free callbacks, as they effectively stack, and we were using incorrect object pointers (pointer from first callback, which didn't match current one). gtk-v2/src/keys.c: Add image.h to includes. gtk-v2/src/main.c: Add image.h to includes. Change access to CONFIG_DISPLAYMODE. Add -opengl command switch. Remove +sdl and popups command line options. Relocate setup of cache call setup to after we know all windows have been created. gtk-v2/src/map.c: Change access to CONFIG_DISPLAYMODE. Add opengl drawing hooks. Change access for smooth info. Implement button press code for map window (basically grabbed from gtk/map.c) gtk-v2/src/opengl.c: New file containing opengl draw code. gtk-v2/src/png.c: Remove some unused code resulting in compile warnings. gtk-v2/src/sdl.c: Remove some commented out code. Change access method for smoothing code. x11/xutil.c: Change access to CONFIG_DISPLAYMODE. Add addsmooth() function. MSW 2005-03-20 | |||
| Show difference between Revision 1.17 and 1.18 | |||
| Revision 1.17 | mwedel | 2005/02/10 07:03:56 | +17 -9 |
|
Makefile.in, common/Makefile.in, gnome/Makefile.in, gtk/Makefile.in, sound-src/Makefile.in, x11/Makefile.in: Add ${DESTDIR} prefix for installation into other directories. Patch from sourcefore #1061895 MSW 2005-02-09 common/external.h, common/init.c, common/player.c, common/proto.h, common/script.c, common/script.h, common/p_cmd.c (new file), common/p_cmd.h (new file), gtk/gtkproto.h, gtk/gx11.c, gtk/help.c (new file), gtk/keys.c, help/chelp.h, x11/x11.c, x11/x11proto.h, x11/xutil.c: Install command table for client side commands - makes adding commands a little easier, but also makes it easier to have better help. Bulk of the changes are in p_cmd.c file, which pulled some code out of player.c. Other source files modified to clean up function parameters (all now take const char * as the command options). Patch from sourceforge 1022245, with some work done by me. Addition fix in gtk/keys.c unbind - buffer overflow would result if unbinding very long binding. MSW 2005-02-09 | |||
| Show difference between Revision 1.16 and 1.17 | |||
| Revision 1.16 | tchize | 2004/01/31 20:13:11 | +9 -2 |
|
fixed a bug in save_individual_key in which a buf was overflowed when a binded command has a size approaching the maximum length (sizeof(bind_buf)). Also fixed a potential problem which could arise when loading a keybinds file where some commands exceeded maximum command length. | |||
| Show difference between Revision 1.15 and 1.16 | |||
| Revision 1.15 | tchize | 2004/01/31 16:19:38 | +3 -1 |
|
Added a warning message when keybinding is trucated becasue too long Also fixed a bug in rebinding of command/fire/run and other system binding | |||
| Show difference between Revision 1.14 and 1.15 | |||
| Revision 1.14 | tchize | 2004/01/30 18:43:35 | +3 -5 |
|
Logging of source files version on client. Removed need for scripting in Makefile Better used way which didn't use Makefile and a script. Simply ask each .c file to create a char * rcsid_directory_file_c and collected them as an array in main() | |||
| Show difference between Revision 1.13 and 1.14 | |||
| Revision 1.13 | tchize | 2004/01/30 13:30:58 | +13 -13 |
|
LOG cleanup, source version infos in logs Cleanup some printf remaining in x11. Also changed x11/sound.c to use raiseChild and so have messages from child showed thru log. Modified root Makefile.in to include bugreport.h. Modified common/Makefile.in, gtk/Makefile.in and x11/Makefile.in so they generate a rcs-id.h file in their respective directory. This file has info on cvs version of .c files used at compile time. Usefull to track bug in outdated client and check they are corrected. Modified gtk/x11 clients so they show those informations at startup. | |||
| Show difference between Revision 1.12 and 1.13 | |||
| Revision 1.12 | tchize | 2004/01/26 16:54:34 | +2 -1 |
|
Building disappear bug fix Fixed a bug of buildings disappearing when moving from west to east or north to south in cities where building are made of a bigimage, covering multisquares. This was because every square entering the map view after a scroll was forced to empty, waiting for info from server. But bigimage buildings are sended by server before they enter map. Added the flag to ask no reset of the bigimage during the erasing of squares and setting flag to true for squares entering the map. | |||
| Show difference between Revision 1.11 and 1.12 | |||
| Revision 1.11 | onefang | 2004/01/12 07:23:57 | +4 -1 |
|
Bind commands longer than the bind buffer no longer crash. DVS 2004-01-12 | |||
| Show difference between Revision 1.10 and 1.11 | |||
| Revision 1.10 | mwedel | 2003/10/06 07:04:02 | +5 -6 |
|
Bulk of this commit is to fix big image support for the X11 client. common/client.h: Add a couple new defines to denote how big the largest image may be, minimum reasonable map size for the_map structure, and how far off the map a head could be. x11/png.c: Remove hard coded values of images being 32 pixels wide/high. Also, store away actual size of images, needed for big image stuff to get filled in properly. x11/x11.c: Add an error handler to make it easier to catch bugs (gets real stack trace instead of the program exiting). Fix up the gen_draw_face to properly draw big images, change call to allocate map to pass in new larger values. x11/x11.h: Add width, height values to Pixmap data structure. x11/xutil.c: Change the routine to recenter virtual map some - we need to take into account that there can be big images, so include that value in when seeing if we are too close to the map edge. MSW 2003-10-05 | |||
| Show difference between Revision 1.9 and 1.10 | |||
| Revision 1.9 | mwedel | 2003/05/25 23:37:54 | +5 -5 |
|
gtk/gx11.c: Change skill experience display - instead of skill name and exp/level being the same string and same table element, add additional columns, so the skill name is in one, the exp/level in another. IMO, this makes for cleaner display, as the exp totals for the different skills then line up better. Also, fix some display bug when new skills need to be displayed. x11/x11.c: Fix bug where stipple patterns where being improperly displayed/retained in fog of war and darkness modes. x11/xutil.c: always set cleared and need_update flag for map scrolls - fixes bug of big objects (griffons for example) not being drawn properly. MSW 2003-05-25 | |||
| Show difference between Revision 1.8 and 1.9 | |||
| Revision 1.8 | mwedel | 2002/05/22 04:58:26 | +4 -112 |
|
The bulk of this checkin adds support in the client for the map1a protocol command and the display of big images properly in the map window. A lot of code cleanup was also done however, including removal for the support of the 'map' (original) command. The map1 has been in the server code for quite a while. TODO: Update what needs to be done for the x11 client. common/client.c: Remove map command, add map1a command to dispatch table. Modify setup we send to server to always try to use the map1a command - there is no reason not to use it. common/client.h: Change some of the CONFIG_ values - basically, change it so that there is just one entry for lighting configuration, but it can have any number of values. Modify MapCell so that instead of having multiple arrays for the different values (faces, sizes), add a MapCellLayer structure that contains the specific face information for that layer. Move the PlayerPosition struct and value to this function so that more of the map decompress logic can be handled in the common code. Remove count value from MapCell since it wasn't really being used. common/commands.c: Add code to set the use_config[CONFIG_CACHE] value based on what we get back from the server. Add code to check the setup response for the for the map1a and map1 options. Add code to deal with expanding big images into appropriate spaces. Move some functions from the gui portion to (display_map_clearcell, set_map_face). Add code for map1_common function to deal with map1a extensions. common/external.h: Remove display_map_clearcell and set_map_face from list of external functions. Add get_map_image_size function. common/init.c: change some values of the config values. Update initialization of config values for lighting. common/proto.h: rebuilt. gtk/config.c: Add new button for lighting - best per pixel. Modify code to properly deal with how lighting preference is now stored. Add legacy support for loading of per_tile_lighting and per_pixel_lighting values from config file. Add diagnostic of bad value if selected map/width is out of range. gtk/gtkproto.h: rebuilt. gtk/gx11.c: Change formatting of draw_list. Modify it so that it adjusts the column/row width based on the largest image it needs to display - In this way, if a player stands on a big building, the entire building is displayed in the look list. add row_height and column_width values so we only need to call the function to change them if they are in fact different. Add +sdl command line option to disable sdl code. Modify gtk_draw_map to include redraw parameter. gtk/gx11.h: remove PlayerPosition structure. add row_height, column_width elements to itemlist structure. gtk/image.c: Add table that is used to determine the scaling used for big images in the look list - in this way, big images still appear big, but not necessary 2 or 3 times bigger. Modify create_and_rescale_image_from_data to use this logic. Add get_map_image_size which the common code uses to determine the number of spaces an image may be. gtk/map.c: remove display_map_clearcell and set_map_face functions - now in common code. Modify the dump map/darkness routines to use the new format of the MapCell structure. Modify set_darkness to only set adjoining spaces for needing an update if lighting type is set that needs this. Remove display_map_addbelow - only used for 'map' command. Modify logic of fog of war code to have it done all at display time - not when setting/clearing a cells contents. Modify gtk_draw_map - this basically follows the same logic of sdl_draw_map - it is now better optimized to only draw the spaces that have changed, and not the entire map - this should improve performance considerably. gtk/sdl.c: Remove #if 0 around putpixel - used for best lighting. Change indention of init_SDL - modify it so that if just_lightmap is true, that really is the only thing that is changed. Modify per_pixel_light code to use both methods of per pixel lighting depending on player prefernce. Modify sdl_gen_map to properly handle draw portion of big images. x11/png.c: Add get_map_image_size function. x11/x11.c: modify display_mapcell_pixmap to use new format of MapCell structure. Remove reference to count in MapCell structure. x11/x11.h: Remove PlayerPosition information - now in common code. x11/x11proto.h: rebuilt. x11/xutil.c: Remove display_map_clearcell and set_map_face functions. Modify dump map code for new MapCell structure layout. Remove display_map_addbelow funtion. MSW 2002-05-21 | |||
| Show difference between Revision 1.7 and 1.8 | |||
| Revision 1.7 | mwedel | 2002/04/03 07:46:52 | +155 -459 |
|
Main change is to make all the configuration options now available in the configure window in the gtk client. The way all the various values was stored was changed around, so it is now pretty trivial to add any future options. For the most part, most of the logic of the other code is unchanged - one thing that is different is that the clients use the larger virtual maps that are normally used for fog of map - this means that fog of war can be turned on and off. There are probably some bugs in this, but it seems to basically work - no horrendous bugs that I noticed that prevent it from working at all. - common/client.c: replaced config values with new system. Always send setup mapredraw 1 to server to make toggling for fog of war easier, and it doesn't use any significant bandwidth. common/client.h: Add new value configuration system/defines. remove the old values. common/commands.c, common/image.c,common/metaserver.c,common/player.c : update for new configuration value system common/init.c: Add config_names which is used for the load/save logic. update the init and clear functions to set up new values. gtk/Makefile.in: add config.c file. gtk/gtkproto.h: rebuilt. gtk/config.c: New file - holds the config creating code, as well as the load and save for the gdefaults file. gtk/gx11.c: Remove some widgets now in config.c, move itemlist to gx11.h, remove some other values that are in the new configuration scheme. gtk/gx11.h: Moved several structures and externs from gx11.c to gx11.h so they are available to config.c. Remove several values that are done with the new config arrays. gtk/image.c, gtk/keys.c, gtk/sdl.c, gtk/sound.c: : update for new configuration value system gtk/map.c: update for new configuration value system, modified so that fog of war map logic is used all the time. Change allocate_map to no longer refer to map_size global - use the x and y values in the map structure. x11/x11.c: update for new configuration value system - the x11 portion still uses the old load/save method - this should get converted. Many of the options available in the gtk client have no corresponding use in the x11 client. x11/x11.h: update for new configuration value system x11/xutil.c: update for new configuration value system. Most of the map logic is now synced up with the gtk/map.c MSW 2002-04-03 | |||
| Show difference between Revision 1.6 and 1.7 | |||
| Revision 1.6 | mwedel | 2002/03/27 07:56:53 | +16 -12 |
|
Various fixes/enhancements: 1) For the files stored in the players cache, include the image set suffix (eg, base, clsc) when saving the file. 2) Add a gui update element to the gtk client when running with -download_all_faces. For the cfclient, print the updates to the window. 3) Apply patch by 'Alfie' that shows skill experience in the cfclientp 4) Fix caching bugs with the cfclient that caused it to not work right. common/client.c: Add callbacks to image_update_download_status from the download all image routine. It is this callback that provides whatever update mechanism for the player. common/external.h: add image_update_download_status common/image.c: Modify display_newpng to put in the image set name of the saved cache files if that information is available. gtk/gtkproto.h: rebuilt. gtk/gx11.c: Make get_window_coord non static so other files can use it. gtk/image.c: Add image_update_download_status that draws a progress bar. Convenient side effect is that other GUI elements are now updated as part of this, so player can access other menu items. x11/png.c: Fix some bugs when using cached images - rgba_to_xpixmap was using initialized bpp value - we now know this is always 4. create_and_rescale_image_from_data did not match the parameters as the common routines use. Also missing some logic for allocating the data and linking it back to the cache entry. x11/x11.c: Add display for skill experience. This necessitated making some of the windows bigger. x11/x11.h: Remove now unused fields from PixmapInfo structure (fg, bg, bitmap) x11/x11proto.h: rebuilt x11/xutil.c: Remove code that was storing data into the unusued fields in the PixmapInfo structure. Add missing call to init_common_cache_data. Add image_update_download_status function that just does a draw info. MSW 2002-03-26 | |||
| Show difference between Revision 1.5 and 1.6 | |||
| Revision 1.5 | mwedel | 2002/03/26 08:15:57 | +11 -117 |
|
Many changes to image handling. The most noteworthy are: 1) Ability to use different image sets. 2) Ability to get checksums of all images and download missing images before play starts. 3) Storing cache information for images in a bmaps.client file so that it can know if it has a match without needing to load the image and checksum it. 4) Can use crossfire-image archives to bootstrap the client with a large number of images to save the time of downloading them later. README: Update some out of data information about sounds, add section describing the image handling. configure,configure.in: Make the SOUNDDIR be based and datadir and not an absolute path - this means using a different -prefix changes the location of where it will find the sound file. Moved some of the defines into the config.h file so that we don't need to pass them as -D compiler options. Add code to properly substitute DATADIR and BINDIR values. common/Makefile.in: Add image.c to list of files. Fix depend directive. common/cconfig.h: Remove some options that no longer did anything. common/client.c: clean up some unused global variables, add a few new ones. and support for replyinfo protocol command. Modify negotiate connection to issue requestinfo requests, set up face set to use, use setup command to set caching behaviour, and support for it to download all image sums and missing images before play starts. common/client.h: Update VERSION_SC to 1027. Remove some unused global externs. Add FaceSets structure, Face_Information structure, the later which holds some user preferences. Add Cache_Entry structure, as well as some state when negotiating the connection. common/commands.c: Add ReplyInfoCmd function. Move FaceCmd to common/image.c. Add handling of received setup command for faceache and faceset information. Remove some dead code. common/config.h.in: Add BINDIR and DATADIR defines so we don't need to pass them on the command line. common/external.h: Add some more functions that are called back from the common area. common/image.c: New file - cache logic, png image load code, and protocol image related commands in this file. This removes some of the code that was previously in the GUI area of the client into a common area. common/init.c: Add TEST_FREE_AND_CLEAR macro. Add code to clear some of the newly added structures. common/proto.h: rebuilt. gnome/gnome-cf.h: remove cache_images extern. gtk/gcfclient.man: Update man page for new options (-download_all_faces, -faceset) gtk/gtkproto.h: rebuilt. gtk/gx11.c: add redraw_needed flag so the map window is properly redrawn when caching images and new images show up. Change some other variables to deal with new image code. pixmaps changed to a pointer so that a copy can be held in the common cache structure. Add support for new options. Remove some code that is now in the common/image.c file. gtk/gx11.h: Remove keepcache, change cache_images, add redraw_needed, and change type of pixmaps to be a pointer. gtk/image.c: Move requestface to the common/image.c, change pixmaps to pointer type. remove finish_face_cmd and ReadImages command. gtk/map.c: Change pixmaps to pointer types. gtk/sdl.c: add redraw paramter to sdl_gen_map. change pixmaps type to pointer. gtk/sound.c: Add missing / when running cfsndserv. x11/png.c: Remove gdk related code from the file. Add rgba_to_xpixmap data so tha the common area can load the png file. x11/sound.c: Add missing / when running cfsndserv. x11/x11.c: change pixmap type to pointer. Add new options (-faceset and -download_all_faces). Remove -keepcache option. change cache_images to face_info.cache_images. Change how the pixmaps are generated x11/x11.h: remove keepcache and cache_images variables. Change pixmaps to pointer type. x11/x11proto.h: rebuilt. x11/xutil.c: remove keepcache option. Change pixmap type to pointer. Move requestface and finish_face_cmd to common/image.c MSW 2002-03-25 | |||
| Show difference between Revision 1.4 and 1.5 | |||
| Revision 1.4 | mwedel | 2002/01/15 07:33:02 | +22 -40 |
|
Most of the changes are by Edgar Toernig - I've just applied them and checked them in. The stripping out of the display_mode variable is my doing however. configure.in, configure: Add check for zlib before png lib check, as on some systems, png requires -lz. common/client-types.h: Add #ifdef check for SOL_TCP common/client.c: Add fast_tcp_send variable, comment out printing of error from socket EOF. Use TCP_NODELAY for sending data to the server if TCP_NODELAY is available. cs_write_string modified to use cs_print_string. common/client.h: Remove display_mode enum, add fast_tcp_send extern. common/commands.c, common/init.c,gtk/image.c, gtk/map.c cs_write_sting modified to use cs_print_string common/external.h: set_autorepeat extern added. common/newsocket.c: Modified to be better optimized for using TCP_NODELAY - cs_print_string function added. common/player.c: modified to use cs_print_string , autorepeat client side command added. common/proto.h, gtk/gtkproto.h: updated with new functions gnome/gnome.c: display_mode variable removed, cs_write_string replaced with cs_print_string gtk/gx11.c: display_mode variable removed, cs_write_string replaced with cs_print_string, -nofog option added pixmaps/question.111: Resized to be 32x32 pixmaps/*.xbm - used for inventory icons in X11 client, replacing xpm files sound-src/cfsndserv.c: Better error handling, include time.h x11/cfclient.man: -font and -noautorepeat options added. x11/png.c: better error checking for rescaling images x11/x11.c: noautorepeat variable added, display_mode removed, image icon functionality re-enabled, images now created from xbm files, set_autorepeat function added, add ability to set font, add mouse wheel support x11/x11.h: remove screen_num extern. x11/x11proto.h: Updated with new functions. x11/xutil.c: Modified to use image_size instead of hardcoded 24x24 value for the status icons. cs_write_replaced with cs_print_string, no auto repeat functionality added. MSW 2001-01-14 | |||
| Show difference between Revision 1.3 and 1.4 | |||
| Revision 1.3 | mwedel | 2001/12/28 08:56:32 | +3 -3 |
|
README: Update notes on needing png (and not xpm) library. Update mailing alias. configure.in, configure: As the seperate sound program (cfsndserv) is the only supported sound configuration, remove new_sound_system defines and ability to use the old (now non existant) sound system. Have configure exit with error message if png library is not found, as it is critical to the build process. Change it so that gnome/Makefile is always built so that making of releases works. gnome/gnome-cfclient.man, help/about.h, x11/cfclient.man: Update mail address. gtk/gtkproto.h, x11/x11proto.h: Rebuilt, prototypes for some changed for signed to unsigned characters. gtk/gx11.c, gtk/png.c, pixmaps/stipple.111, x11/png.c, x11/x11.c, x11/xutil.c, pixmaps/stipple.111 pixmaps/stipple.112: Mostly changes to fix compile warnings and make sure we are passing the right types to the various image creation functions (8 bit data). sound-src/Makefile.in: Add soundsdef.h to list of things to build. x11/x11.h: Remove extra semicolon. MSW 2001-12-28 | |||
| Show difference between Revision 1.2 and 1.3 | |||
| Revision 1.2 | mwedel | 2001/11/04 03:31:59 | +27 -6 |
|
More fixes to headers for the various files - MSW 2001-11-03 | |||
| Show difference between Revision 1.1 and 1.2 | |||
| Revision 1.1 | mwedel | 2001/11/02 08:22:03 | None |
|
Complete client re-org. Create common, gtk, gnome, sounds, and x11 subdirs. Gtk client: only image support is png. Also add resizing options for the images (-mapscale/-iconscale), remove pngximage, update sdl image and normal draw image to support arbitrary image sizes. sound: Only support new sound system. MSW 2001-11-01 | |||
| Show difference between Revision 1.16.2.1 and 1.1 | |||
| Revision 1.16.2.1 | tanner | 2005/02/23 04:09:28 | +17 -9 |
|
* Merge from head into rework branch * Merge of Mark's ALSA changes into branch | |||