Author: mir3x
Date: Thu Nov  5 21:16:03 2015
New Revision: 30433

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

Reported by Marko Lindqvist <cazfi>
See bug #24006


Modified:
    branches/S2_5/client/gui-qt/canvas.cpp

Modified: branches/S2_5/client/gui-qt/canvas.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/client/gui-qt/canvas.cpp?rev=30433&r1=30432&r2=30433&view=diff
==============================================================================
--- branches/S2_5/client/gui-qt/canvas.cpp      (original)
+++ branches/S2_5/client/gui-qt/canvas.cpp      Thu Nov  5 21:16:03 2015
@@ -126,10 +126,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