Skip to content

Commit

Permalink
fix with some pixels off for 3d buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeandmore authored and ThomasAdam committed Feb 23, 2021
1 parent 89508d8 commit 83367d2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libs/Graphics.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,16 @@ 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;
}
}
i2 = i;
/* 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 */
Expand All @@ -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 */
{
Expand Down

0 comments on commit 83367d2

Please sign in to comment.