From eb896f6fdb2f4883977d686bf01d58183b2a64e5 Mon Sep 17 00:00:00 2001 From: cxl Date: Fri, 16 Jan 2009 17:26:19 +0000 Subject: [PATCH] Painter::DrawRect fix git-svn-id: svn://ultimatepp.org/upp/trunk@769 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Painter/Painter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uppsrc/Painter/Painter.cpp b/uppsrc/Painter/Painter.cpp index ffd84c61b..f20a50e81 100644 --- a/uppsrc/Painter/Painter.cpp +++ b/uppsrc/Painter/Painter.cpp @@ -10,7 +10,7 @@ void Painter::OffsetOp(Point p) void Painter::RectPath(int x, int y, int cx, int cy) { - Move(x, y).Line(x + cx - 1, y).Line(x + cx - 1, y + cy - 1).Line(x, y + cy - 1).Close(); + Move(x, y).Line(x + cx, y).Line(x + cx, y + cy).Line(x, y + cy).Close(); } void Painter::RectPath(const Rect& r)