From mboxrd@z Thu Jan 1 00:00:00 1970 From: shebs@sourceware.cygnus.com To: xconq-cvs@sourceware.cygnus.com Subject: xconq ./ChangeLog kernel/cmd.c kernel/dir.h ke ... Date: Sat, 13 Jan 2001 10:27:00 -0000 Message-id: <20010113182707.25738.qmail@sourceware.cygnus.com> X-SW-Source: 2001/msg00011.html List-Id: CVSROOT: /cvs/xconq Module name: xconq Changes by: shebs@sources.redhat.com 2001-01-13 10:27:07 Modified files: . : ChangeLog kernel : cmd.c dir.h imf.c imf.h ui.c sdl : sdlcmd.c sdlconq.h sdlmain.c sdlmap.c tcltk : tkcmd.c tkconq.h tkmain.c tkmap.c Added files: images : font.bmp Log message: Various additions to the SDL interface - mouseover text pane, unit&feature names on map, isometric display, misc layers. * sdlconq.h (ui curfid): New field. (Map active): New field. (small_font): New global. * sdlmain.c (small_font): Define. (initial_ui_init): Fill in from font.bmp, enable unicode translation of keyboard events. (autoscroll): Update focus. (ui_mainloop): Only autoscroll when map is active window. (handle_event): Get unicode from key event, filter out zeros, grok activation events. (ask_position): Put out the prompt. (place_legends): Implement. * sdlcmd.c (do_refresh): Tweak place_legends call. (do_set_view_angle): Implement. * sdlmap.c (open_sdl_window): Get map viewport from surface size, set an initial focus. (update_map): Add isometric case, add more debugging draws, add mouseover pane. (random_color): New function. (draw_map_isometric, draw_terrain_iso, draw_clouds_row, draw_temperature_row, draw_winds_row, draw_feature_boundary, draw_feature_name, draw_people, draw_string): New functions. (draw_unit_name, draw_unit_size): Make work. * tkconq.h, tkcmd.c, tkmain.c (place_legends): Don't pass a side argument. * images/font.bmp: Basic text font, borrowed from Randi Relander's Regimental Command project. * ui.c: Add a comment about 12x13 hex size. * imf.c, imf.h (copy_from_file_image): Add actual-size arguments. * imf.c (make_raw_palette): Add a little slop, for now at least. (make_image_from_file_image): Add slop to subimage palette allocation, use copy_from_file_image actual-size arguments. * dir.h (dir_subtract): Move to here from tkmap.c. * cmd.c (execute_command): Filter out zero chars.