Skip to content

Commit

Permalink
Fix single point drawn_area
Browse files Browse the repository at this point in the history
  • Loading branch information
mzivic7 committed Oct 23, 2024
1 parent fe87016 commit 8a26210
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src_c/draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1917,12 +1917,14 @@ draw_aaline_width(SDL_Surface *surf, Uint32 color, float from_x, float from_y,
if (steep) {
start_draw = (int)(x - width + extra_width);
end_draw = (int)(x + width) - 1;
drawhorzlineclipbounding(surf, color, start_draw, y, end_draw);
drawhorzlineclipbounding(surf, color, start_draw, y, end_draw,
drawn_area);
}
else {
start_draw = (int)(y - width + extra_width);
end_draw = (int)(y + width) - 1;
drawvertlineclipbounding(surf, color, start_draw, x, end_draw);
drawvertlineclipbounding(surf, color, start_draw, x, end_draw,
drawn_area);
}
}
return;
Expand Down

0 comments on commit 8a26210

Please sign in to comment.