Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2003:
[Freeciv-Dev] (PR#3540) Parametric control of update city decriptions in
Home

[Freeciv-Dev] (PR#3540) Parametric control of update city decriptions in

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients:;
Subject: [Freeciv-Dev] (PR#3540) Parametric control of update city decriptions in refresh_tile_mapcanvas
From: "Rafa³ Bursig" <bursig@xxxxxxxxx>
Date: Wed, 26 Feb 2003 17:03:18 -0800
Reply-to: rt@xxxxxxxxxxxxxx

Hi

This small fix add on/off of update city descriptions in 
refresh_tile_mapcanvas.
SDLClient don't need it becouse he use buffered city description code.

Rafal
diff -u -r fct/client/gui-sdl/gui_main.c fc/client/gui-sdl/gui_main.c
--- fct/client/gui-sdl/gui_main.c       Wed Feb 26 15:21:40 2003
+++ fc/client/gui-sdl/gui_main.c        Wed Feb 26 16:05:40 2003
@@ -659,7 +660,8 @@
   pInfo_User_Event = &__Info_User_Event;
   
   smooth_move_unit_steps = 8;
-  
+  update_city_text_in_refresh_tile = FALSE;
+    
   parse_options(argc, argv);
 
   tilespec_load_tiles();
diff -u -r fct/client/mapview_common.c fc/client/mapview_common.c
--- fct/client/mapview_common.c Wed Feb 26 15:24:36 2003
+++ fc/client/mapview_common.c  Wed Feb 26 16:04:30 2003
@@ -44,7 +44,8 @@
   if (tile_visible_mapcanvas(x, y)) {
     update_map_canvas(x, y, 1, 1, FALSE);
 
-    if (draw_city_names || draw_city_productions) {
+    if (update_city_text_in_refresh_tile
+        && (draw_city_names || draw_city_productions)) {
       /* FIXME: update_map_canvas() will overwrite the city descriptions.
        * This is a workaround that redraws the city descriptions (most of
        * the time).  Although it seems inefficient to redraw the
diff -u -r fct/client/options.c fc/client/options.c
--- fct/client/options.c        Mon Dec 30 15:53:49 2002
+++ fc/client/options.c Wed Feb 26 16:03:23 2003
@@ -71,6 +71,7 @@
 bool map_scrollbars = TRUE;
 bool ask_city_name = TRUE;
 bool popup_new_cities = TRUE;
+bool update_city_text_in_refresh_tile = TRUE;
 
 #define GEN_INT_OPTION(oname, desc) { #oname, desc, COT_INT, \
                                       &oname, NULL, NULL, 0, NULL, \
diff -u -r fct/client/options.h fc/client/options.h
--- fct/client/options.h        Sat Nov 23 03:55:42 2002
+++ fc/client/options.h Wed Feb 26 16:02:46 2003
@@ -45,6 +45,7 @@
 extern bool map_scrollbars;
 extern bool ask_city_name;
 extern bool popup_new_cities;
+extern bool update_city_text_in_refresh_tile;
 
 enum client_option_type {
   COT_BOOL,

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#3540) Parametric control of update city decriptions in refresh_tile_mapcanvas, Rafa³ Bursig <=