Skip to content

Commit

Permalink
Correct comments labeling bevel segments drawn
Browse files Browse the repository at this point in the history
  • Loading branch information
hak-foo committed Dec 29, 2024
1 parent f7d8388 commit 3d54410
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/Graphics.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void do_relieve_rectangle_with_rotation(

if (rotation == ROTATION_90 || rotation == ROTATION_270) {
/* Vertical titlebars move the "highlight" 90 degrees */
/* bottom */
/* top */
for (i = 0; i < max_h; i++) {
seg[i].x1 = x+i+l; seg[i].y1 = y+i;
seg[i].x2 = x+w-1-i+l; seg[i].y2 = y+i;
Expand All @@ -146,7 +146,7 @@ void do_relieve_rectangle_with_rotation(
seg[i].x2 = x+i; seg[i].y2 = y+h-1-i+a;
}
cur = i;
/* top */
/* bottom */
for (i = 0; i < max_h; i++, cur++) {
seg[cur].x1 = x+i+a; seg[cur].y1 = y+h-i;
seg[cur].x2 = x+w-1-i+a; seg[cur].y2 = y+h-i;
Expand Down

0 comments on commit 3d54410

Please sign in to comment.