buildfix: undefined srm.x_scale, srm.y_scale

srm.x_scale and srm.y_scale are undefined in this context/scope.

Upstream of patch used by Lakka at build time
1943ad296e/packages/libretro/retroarch/patches/retroarch-07-gpicase_buildfix.patch
This commit is contained in:
Tomáš Kelemen (vudiq) 2021-11-17 22:04:38 +01:00
parent 0cf437e375
commit fd5c718b48
No known key found for this signature in database
GPG Key ID: 5CE55E600E0B3B22

View File

@ -131,7 +131,7 @@ static void set_aspect(videocrt_switch_t *p_switch, unsigned int width,
RARCH_LOG("[CRT]: Resolution is stretched. Fractal scaling @ X:%f Y:%f \n", srm_xscale, srm_yscale);
}
else
RARCH_LOG("[CRT]: SR integer scaled X:%d Y:%d \n",srm.x_scale, srm.y_scale);
RARCH_LOG("[CRT]: SR integer scaled X:%d Y:%d \n",(int)srm_xscale, (int)srm_yscale);
scaled_width = roundf(patched_width*srm_xscale);
scaled_height = roundf(patched_height*srm_yscale);