From 12421cc17c6176a16ec18901e02d760ccd0b28ad Mon Sep 17 00:00:00 2001 From: sf17k Date: Fri, 3 Jun 2011 18:14:37 -0400 Subject: [PATCH] fix one-pixel offset introduced in menu cleanup --- Source/Menu.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Menu.cpp b/Source/Menu.cpp index 1eb9b4b..2003873 100644 --- a/Source/Menu.cpp +++ b/Source/Menu.cpp @@ -202,12 +202,12 @@ void Menu::drawItems(){ break; case MenuItem::MAPLINE: { XYZ linestart; - linestart.x=it->x; - linestart.y=it->y; + linestart.x=it->x-0.5; + linestart.y=it->y-0.5; linestart.z=0; XYZ lineend; - lineend.x=it->x+it->w; - lineend.y=it->y+it->h; + lineend.x=it->x+it->w-0.5; + lineend.y=it->y+it->h-0.5; lineend.z=0; XYZ offset=lineend-linestart; XYZ fac=offset; -- 2.39.2