Mend a NEW warning in src/fill.c

This commit is contained in:
Bill Kendrick 2021-10-24 01:04:47 -07:00
parent 7def2a84a0
commit 94943d9fdd

View file

@ -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);