Author: mir3x
Date: Sun Aug  7 17:41:38 2016
New Revision: 33491

URL: http://svn.gna.org/viewcvs/freeciv?rev=33491&view=rev
Log:
Qt client - Unfogged pixels left on minimap when unit moves
Reported by Jacob Nevins <jtn>

See bug #24861



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

Modified: branches/S2_6/client/gui-qt/canvas.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/canvas.cpp?rev=33491&r1=33490&r2=33491&view=diff
==============================================================================
--- branches/S2_6/client/gui-qt/canvas.cpp      (original)
+++ branches/S2_6/client/gui-qt/canvas.cpp      Sun Aug  7 17:41:38 2016
@@ -168,9 +168,9 @@
   if (width == 1 && height == 1) {
     p.drawPoint(canvas_x, canvas_y);
   } else if (width == 1) {
-    p.drawLine(canvas_x, canvas_y, canvas_x, canvas_y + height);
+    p.drawLine(canvas_x, canvas_y, canvas_x, canvas_y + height -1);
   } else if (height == 1) {
-    p.drawLine(canvas_x, canvas_y, canvas_x + width, canvas_y);
+    p.drawLine(canvas_x, canvas_y, canvas_x + width - 1, canvas_y);
   } else {
     p.drawRect(canvas_x, canvas_y, width, height);
   }


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

Reply via email to