Skip to content

Commit

Permalink
Allow proper drawing to last column of screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0203 committed May 31, 2019
1 parent b76f2f2 commit b9f9d0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demo/x11_rawfb/nuklear_rawfb.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ nk_rawfb_stroke_line(const struct rawfb_context *rawfb,
x1 = x0;
x0 = tmp;
}
x1 = MIN(rawfb->scissors.w - 1, x1);
x0 = MIN(rawfb->scissors.w - 1, x0);
x1 = MIN(rawfb->scissors.w, x1);
x0 = MIN(rawfb->scissors.w, x0);
x1 = MAX(rawfb->scissors.x, x1);
x0 = MAX(rawfb->scissors.x, x0);
nk_rawfb_line_horizontal(rawfb, x0, y0, x1, col);
Expand Down

0 comments on commit b9f9d0a

Please sign in to comment.