Author: mir3x
Date: Sun Aug  7 17:41:23 2016
New Revision: 33490

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

See bug #24861



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=33490&r1=33489&r2=33490&view=diff
==============================================================================
--- branches/S2_5/client/gui-qt/canvas.cpp      (original)
+++ branches/S2_5/client/gui-qt/canvas.cpp      Sun Aug  7 17:41:23 2016
@@ -152,9 +152,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