Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2004:
[Freeciv-Dev] (PR#11143) don't draw black tiles
Home

[Freeciv-Dev] (PR#11143) don't draw black tiles

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#11143) don't draw black tiles
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 21 Nov 2004 19:17:16 -0800
Reply-to: rt@xxxxxxxxxxx

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

This patch removes a spurious piece of drawing.  For unknown tiles a 
"black tile" is drawn.  However this is unnecessary because we already 
clear the background to black before drawing anything.  For unknown 
tiles we can draw nothing and get the same effect.

This may speed up drawing a tiny bit.  It should be applied to both 
branches I think.

jason

Index: client/tilespec.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/tilespec.c,v
retrieving revision 1.213
diff -u -r1.213 tilespec.c
--- client/tilespec.c   20 Nov 2004 17:45:52 -0000      1.213
+++ client/tilespec.c   22 Nov 2004 03:15:26 -0000
@@ -2638,7 +2638,6 @@
   struct drawn_sprite *save_sprs = sprs;
 
   if (ptile && tile_get_known(ptile) == TILE_UNKNOWN) {
-    ADD_BG(COLOR_STD_BLACK);
     return sprs - save_sprs;
   }
 

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#11143) don't draw black tiles, Jason Short <=