Skip to content

Commit

Permalink
Update Drawing.h
Browse files Browse the repository at this point in the history
Windows warnings fixes.
  • Loading branch information
razterizer authored Oct 3, 2024
1 parent 900b0a1 commit fb95f2b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Drawing.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,12 @@ namespace bresenham
void plot_line(SpriteHandler<NR, NC>& sh, const RC& p0, const RC& p1,
const std::string& str, Color fg_color, Color bg_color)
{
plot_line(sh, p0.r, p0.c, p1.r, p1.c, str, fg_color, bg_color);
plot_line(sh,
static_cast<float>(p0.r),
static_cast<float>(p0.c),
static_cast<float>(p1.r),
static_cast<float>(p1.c),
str, fg_color, bg_color);
}
}

Expand Down

0 comments on commit fb95f2b

Please sign in to comment.