From 83367d2010c3ca723c71e5e6782c5234707c88b7 Mon Sep 17 00:00:00 2001 From: Mike Qin Date: Tue, 23 Feb 2021 14:44:00 -0500 Subject: [PATCH] fix with some pixels off for 3d buttons --- libs/Graphics.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/Graphics.c b/libs/Graphics.c index 95ff375bb..35c70f792 100644 --- a/libs/Graphics.c +++ b/libs/Graphics.c @@ -128,7 +128,7 @@ void do_relieve_rectangle_with_rotation( else /* ROTATION_90 */ { /* right */ - seg[i].x1 = x+w-i; seg[i].y1 = y+h-i+l; + seg[i].x1 = x+w-i; seg[i].y1 = y+h-i; seg[i].x2 = x+w-i; seg[i].y2 = y+i+1; } } @@ -136,8 +136,8 @@ void do_relieve_rectangle_with_rotation( /* draw top segments */ for (i = 0; i < max_h; i++,i2++) { - seg[i2].x1 = x+w-i+l; seg[i2].y1 = y+i; - seg[i2].x2 = x+i+1; seg[i2].y2 = y+i; + seg[i2].x1 = x+w-i+1; seg[i2].y1 = y+i; + seg[i2].x2 = x+i; seg[i2].y2 = y+i; } XDrawSegments(dpy, d, relief_gc, seg, i2); /* bottom */ @@ -152,8 +152,8 @@ void do_relieve_rectangle_with_rotation( if (rotation == ROTATION_0) { /* right */ - seg[i2].x1 = x+w-i; seg[i2].y1 = y+h-i+l; - seg[i2].x2 = x+w-i; seg[i2].y2 = y+i+1; + seg[i2].x1 = x+w-i; seg[i2].y1 = y+h-i+1; + seg[i2].x2 = x+w-i; seg[i2].y2 = y+i; } else /* ROTATION_90 */ {