Mend a NEW warning in src/fill.c
This commit is contained in:
parent
7def2a84a0
commit
94943d9fdd
1 changed files with 2 additions and 2 deletions
|
|
@ -507,8 +507,8 @@ void draw_radial_gradient(SDL_Surface * canvas, int x_left, int y_top, int x_rig
|
|||
/* Only alter the pixels within the flood itself */
|
||||
if (touched[(yy * canvas->w) + xx]) {
|
||||
/* Determine the distance from the click point */
|
||||
xd = fabs(xx - x);
|
||||
yd = fabs(yy - y);
|
||||
xd = fabs((float) (xx - x));
|
||||
yd = fabs((float) (yy - y));
|
||||
dist = sqrt(xd * xd + yd * yd);
|
||||
if (dist < rad) {
|
||||
ratio = (dist / rad);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue