From fd5c718b481ef57254e70ab644af0dc8b8d5076c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Kelemen=20=28vudiq=29?= Date: Wed, 17 Nov 2021 22:04:38 +0100 Subject: [PATCH] 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 https://github.com/libretro/Lakka-LibreELEC/blob/1943ad296eaf7c01040f02aa8f5dff3d2f37309f/packages/libretro/retroarch/patches/retroarch-07-gpicase_buildfix.patch --- gfx/video_crt_switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/video_crt_switch.c b/gfx/video_crt_switch.c index 4e1caab591..25793945f5 100644 --- a/gfx/video_crt_switch.c +++ b/gfx/video_crt_switch.c @@ -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);