mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-22 20:25:38 +00:00
Fixed warning C4244: '=': conversion from 'Sint64' to 'int', possible loss of data
This commit is contained in:
parent
61821bd876
commit
12bab1c981
|
@ -151,9 +151,10 @@ static int SDL_UpperSoftStretch(SDL_Surface *src, const SDL_Rect *srcrect,
|
||||||
int i; \
|
int i; \
|
||||||
Sint64 fp_sum_h; \
|
Sint64 fp_sum_h; \
|
||||||
int fp_step_h, left_pad_h, right_pad_h; \
|
int fp_step_h, left_pad_h, right_pad_h; \
|
||||||
Sint64 fp_sum_w; \
|
Sint64 fp_sum_w; \
|
||||||
int fp_step_w, left_pad_w, right_pad_w; \
|
int fp_step_w, left_pad_w, right_pad_w; \
|
||||||
int fp_sum_w_init, left_pad_w_init, right_pad_w_init, dst_gap, middle_init; \
|
Sint64 fp_sum_w_init; \
|
||||||
|
int left_pad_w_init, right_pad_w_init, dst_gap, middle_init; \
|
||||||
get_scaler_datas(src_h, dst_h, &fp_sum_h, &fp_step_h, &left_pad_h, &right_pad_h); \
|
get_scaler_datas(src_h, dst_h, &fp_sum_h, &fp_step_h, &left_pad_h, &right_pad_h); \
|
||||||
get_scaler_datas(src_w, dst_w, &fp_sum_w, &fp_step_w, &left_pad_w, &right_pad_w); \
|
get_scaler_datas(src_w, dst_w, &fp_sum_w, &fp_step_w, &left_pad_w, &right_pad_w); \
|
||||||
fp_sum_w_init = fp_sum_w + left_pad_w * fp_step_w; \
|
fp_sum_w_init = fp_sum_w + left_pad_w * fp_step_w; \
|
||||||
|
|
Loading…
Reference in a new issue