Mend compiler warning (don't cast ceil() to (int))
This commit is contained in:
parent
3f5bc2b554
commit
3ae4517a08
1 changed files with 2 additions and 2 deletions
|
|
@ -11458,8 +11458,8 @@ static SDL_Surface *thumbnail2(SDL_Surface * src, int max_x, int max_y, int keep
|
|||
xscale = (float)((float)src->w / (float)sx);
|
||||
}
|
||||
|
||||
new_x = (int)ceil((float)src->w / xscale);
|
||||
new_y = (int)ceil((float)src->h / yscale);
|
||||
new_x = ceil((float)src->w / xscale);
|
||||
new_y = ceil((float)src->h / yscale);
|
||||
|
||||
if (new_x > max_x)
|
||||
new_x = max_x;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue