From 43047988e507799d7d5bbcd926c5d0b5b94fcdc1 Mon Sep 17 00:00:00 2001 From: Justin Weiss Date: Sun, 2 Aug 2020 22:04:52 -0700 Subject: Add an option to downscale hi-res views Some older devices that use gpu_unai don't have a high enough resolution to display all of the pixels in high-res mode. There's a setting in unai to skip rendering of these pixels, but it's not connected to the libretro frontend, and does not appear to be used in the gpulib implementation at all. This commit adds a gpu_unai setting, Enable Hi-Res Downscaling, that will enable pixel skipping and blit only the pixels actually rendered into a buffer no larger than 384x240. This buffer is then treated as the actual framebuffer by gpulib and the libretro frontend. --- frontend/menu.c | 1 + 1 file changed, 1 insertion(+) (limited to 'frontend/menu.c') diff --git a/frontend/menu.c b/frontend/menu.c index f4a45ba..e5c2738 100644 --- a/frontend/menu.c +++ b/frontend/menu.c @@ -432,6 +432,7 @@ static const struct { CE_INTVAL_P(gpu_unai.abe_hack), CE_INTVAL_P(gpu_unai.no_light), CE_INTVAL_P(gpu_unai.no_blend), + CE_INTVAL_P(gpu_unai.scale_hires), CE_INTVAL_P(gpu_neon.allow_interlace), CE_INTVAL_P(gpu_neon.enhancement_enable), CE_INTVAL_P(gpu_neon.enhancement_no_main), -- cgit v1.2.3