Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2005:
[Freeciv-Dev] (PR#12196) full refresh instead of none
Home

[Freeciv-Dev] (PR#12196) full refresh instead of none

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#12196) full refresh instead of none
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 9 Feb 2005 18:44:12 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12196 >

In the current code, if unqueue_mapview_updates is supposed to do no 
refreshes it instead does a full refresh.

-jason

Index: mapview_common.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/mapview_common.c,v
retrieving revision 1.182
diff -u -r1.182 mapview_common.c
--- mapview_common.c    9 Feb 2005 17:15:17 -0000       1.182
+++ mapview_common.c    10 Feb 2005 02:43:25 -0000
@@ -2332,7 +2332,9 @@
        } tile_list_iterate_end;
       }
 
-      update_map_canvas(min_x, min_y, max_x - min_x, max_y - min_y);
+      if (min_x < max_x && min_y < max_y) {
+       update_map_canvas(min_x, min_y, max_x - min_x, max_y - min_y);
+      }
     }
   }
   if (tile_updates) {

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#12196) full refresh instead of none, Jason Short <=