Eradicated C style cast.
This commit is contained in:
parent
faa1b2885f
commit
84cee96a5a
1 changed files with 2 additions and 2 deletions
|
@ -807,8 +807,8 @@ void campaign_preview_pane::draw()
|
|||
int max_height = area.h-(txt_area.h+txt_area.y-area.y);
|
||||
|
||||
src_rect.x = src_rect.y = 0;
|
||||
src_rect.w = minimum((int)area.w,img->w);
|
||||
src_rect.h = minimum(max_height,img->h);
|
||||
src_rect.w = minimum<int>(area.w,img->w);
|
||||
src_rect.h = minimum<int>(max_height,img->h);
|
||||
dst_rect.x = area.x+(area.w-src_rect.w)/2;
|
||||
dst_rect.y = txt_area.y+(max_height-src_rect.h)/2;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue