Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2004:
[Freeciv-Dev] (PR#8069) drawing error with flags
Home

[Freeciv-Dev] (PR#8069) drawing error with flags

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#8069) drawing error with flags
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 15 Mar 2004 00:00:55 -0800
Reply-to: rt@xxxxxxxxxxx

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

When drawing flags in iso-view, there's an error.  If you have a unit 
directly north (gui direction) from another unit, the bottom unit's flag 
isn't drawn correctly.

This is because of a bug when placing the drawn_sprite.  The attached 
patch fixes this.  Eventually we should have a function like 
put_drawn_sprite() to do this (although right now there is just this one 
user).

jason

Index: client/mapview_common.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/mapview_common.c,v
retrieving revision 1.92
diff -u -r1.92 mapview_common.c
--- client/mapview_common.c     15 Mar 2004 06:14:39 -0000      1.92
+++ client/mapview_common.c     15 Mar 2004 07:57:22 -0000
@@ -645,7 +645,7 @@
       canvas_put_sprite(pcanvas, canvas_x + ox, canvas_y + oy,
                        drawn_sprites[i].sprite,
                        unit_offset_x - ox, unit_offset_y - oy,
-                       unit_width - ox, unit_height - oy);
+                       unit_width, unit_height);
     }
   }
 

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#8069) drawing error with flags, Jason Short <=