From 4383b7dad5e24eec8623a81fdb647485b6f4078a Mon Sep 17 00:00:00 2001 From: neonloop Date: Mon, 23 Jan 2023 00:06:23 +0000 Subject: Fixes max 320px crop when aspect is not 4:3 --- scale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scale.c b/scale.c index 7097380..c220aac 100644 --- a/scale.c +++ b/scale.c @@ -437,7 +437,7 @@ static void scale_select_scaler(unsigned w, unsigned h, size_t pitch) { /* For SNES, keep aspect ratio same for hi-res and normal */ src_w = SCREEN_WIDTH * 2; } else { - src_w = w / current_aspect_ratio; + src_w = w * ((double)SCREEN_WIDTH / (double)320); } dst_x = ((src_w - (short)w) / 2); -- cgit v1.2.3