Skip to content

Commit

Permalink
Update fbutils-linux.c to fix fillrect only drawing first y line
Browse files Browse the repository at this point in the history
Update fbutils-linux.c because fillrect only draw y0 line caused by a wrong parameter in __pixel_loc.
  • Loading branch information
MikeBergmann authored and merge committed Sep 13, 2017
1 parent cf762c9 commit 5a8b080
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/fbutils-linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ void fillrect (int32_t x1, int32_t y1, int32_t x2, int32_t y2, uint32_t colidx)

for (; y1 <= y2; y1++) {
for (tmp = x1; tmp <= x2; tmp++) {
__pixel_loc(x1, y1, &loc);
__pixel_loc(tmp, y1, &loc);
__setpixel(loc, xormode, colidx);
loc.p8 += bytes_per_pixel;
}
Expand Down

0 comments on commit 5a8b080

Please sign in to comment.