Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2004:
[Freeciv-Dev] (PR#9068) mapview_canvas.store_width bug
Home

[Freeciv-Dev] (PR#9068) mapview_canvas.store_width bug

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#9068) mapview_canvas.store_width bug
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 22 Jun 2004 09:21:01 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=9068 >

Here's another store_width versus width problem.  When you scroll the 
part of the mapview store that's not displayed isn't updated.  So if you 
scroll and resize you'll get problems.

jason

? gmon.out
Index: client/mapview_common.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/mapview_common.c,v
retrieving revision 1.130
diff -u -r1.130 mapview_common.c
--- client/mapview_common.c     21 Jun 2004 15:14:43 -0000      1.130
+++ client/mapview_common.c     22 Jun 2004 16:19:51 -0000
@@ -403,7 +403,8 @@
    * code but speeds up the mapview by a large factor. */
   if (mapview_canvas.gui_x0 != gui_x0 || mapview_canvas.gui_y0 != gui_y0) {
     int map_center_x, map_center_y, old_gui_x0, old_gui_y0, dx, dy;
-    const int width = mapview_canvas.width, height = mapview_canvas.height;
+    const int width = mapview_canvas.store_width;
+    const int height = mapview_canvas.store_height;
     int common_x0, common_x1, common_y0, common_y1;
     int update_x0, update_x1, update_y0, update_y1;
 

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#9068) mapview_canvas.store_width bug, Jason Short <=