Author: mir3x
Date: Thu Nov  5 21:16:19 2015
New Revision: 30435

URL: http://svn.gna.org/viewcvs/freeciv?rev=30435&view=rev
Log:
Fixed drawing fogged sprites in Qt-client.

Reported by Marko Lindqvist <cazfi>
See bug #24006


Modified:
    trunk/client/gui-qt/canvas.cpp

Modified: trunk/client/gui-qt/canvas.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/canvas.cpp?rev=30435&r1=30434&r2=30435&view=diff
==============================================================================
--- trunk/client/gui-qt/canvas.cpp      (original)
+++ trunk/client/gui-qt/canvas.cpp      Thu Nov  5 21:16:19 2015
@@ -134,10 +134,9 @@
 {
   QPainter p;
 
-  /* no idea where its drawn so lets keep CompositionMode_Multiply
-   * to see where it is really used */
-  p.begin(&pcanvas->map_pixmap);
-  p.setCompositionMode(QPainter::CompositionMode_Multiply);
+  p.begin(&pcanvas->map_pixmap);
+  p.setCompositionMode(QPainter::CompositionMode_Difference);
+  p.setOpacity(0.5);
   p.drawPixmap(canvas_x, canvas_y, *psprite->pm);
   p.end();
 }


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to