From 7f524c724892041e58e1a33f240c25c192ef75bc Mon Sep 17 00:00:00 2001 From: Logan McNaughton <848146+loganmc10@users.noreply.github.com> Date: Fri, 18 Feb 2022 10:28:56 -0700 Subject: [PATCH] update parallel rdp --- parallel-rdp-standalone/gfx_m64p.c | 6 +++--- parallel-rdp-standalone/parallel_imp.cpp | 8 ++++---- parallel-rdp-standalone/parallel_imp.h | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/parallel-rdp-standalone/gfx_m64p.c b/parallel-rdp-standalone/gfx_m64p.c index d296738..989da40 100644 --- a/parallel-rdp-standalone/gfx_m64p.c +++ b/parallel-rdp-standalone/gfx_m64p.c @@ -31,7 +31,7 @@ #define KEY_SSDITHER "SuperscaledDither" #define KEY_SSREADBACKS "SuperscaledReads" #define KEY_OVERSCANCROP "CropOverscan" -#define KEY_PAL_STRETCH "PALStretch" +#define KEY_VERTICAL_STRETCH "VerticalStretch" #define KEY_DIVOT "Divot" #define KEY_GAMMADITHER "GammaDither" #define KEY_AA "VIAA" @@ -156,7 +156,7 @@ EXPORT m64p_error CALL PluginStartup(m64p_dynlib_handle _CoreLibHandle, void *Co ConfigSetDefaultBool(configVideoParallel, KEY_SSDITHER, 1, "Enable superscaling of dithering when upsampling"); ConfigSetDefaultBool(configVideoParallel, KEY_SYNCHRONOUS, 1, "Enable synchronizing RDP and CPU"); ConfigSetDefaultInt(configVideoParallel, KEY_OVERSCANCROP, 0, "Amount of overscan pixels to crop on all sides"); - ConfigSetDefaultInt(configVideoParallel, KEY_PAL_STRETCH, 0, "Amount of pixels to stretch by vertically. Meant to fix bad PAL ports that didn't bother with filling the PAL resolution of 288p (use value of 24 in that case)."); + ConfigSetDefaultInt(configVideoParallel, KEY_VERTICAL_STRETCH, 0, "Amount of pixels to stretch by vertically. Can fix PAL ports that didn't fill the PAL resolution of 288p (use value of 24 in that case)."); ConfigSetDefaultBool(configVideoParallel, KEY_AA, 1, "VI anti-aliasing, smooths polygon edges."); ConfigSetDefaultBool(configVideoParallel, KEY_DIVOT, 1, "Allow VI divot filter, cleans up stray black pixels."); ConfigSetDefaultBool(configVideoParallel, KEY_GAMMADITHER, 1, "Allow VI gamma dither"); @@ -260,7 +260,7 @@ EXPORT int CALL RomOpen(void) vk_interlacing = ConfigGetParamBool(configVideoParallel, KEY_DEINTERLACE); vk_downscaling_steps = ConfigGetParamInt(configVideoParallel, KEY_DOWNSCALE); vk_overscan = ConfigGetParamInt(configVideoParallel, KEY_OVERSCANCROP); - vk_pal_fix = ConfigGetParamInt(configVideoParallel, KEY_PAL_STRETCH); + vk_vertical_stretch = ConfigGetParamInt(configVideoParallel, KEY_VERTICAL_STRETCH); vk_synchronous = ConfigGetParamBool(configVideoParallel, KEY_SYNCHRONOUS); diff --git a/parallel-rdp-standalone/parallel_imp.cpp b/parallel-rdp-standalone/parallel_imp.cpp index d22daa1..f80ce82 100644 --- a/parallel-rdp-standalone/parallel_imp.cpp +++ b/parallel-rdp-standalone/parallel_imp.cpp @@ -22,7 +22,7 @@ bool vk_ssdither; bool running = false; unsigned width, height; unsigned vk_overscan; -unsigned vk_pal_fix; +unsigned vk_vertical_stretch; unsigned vk_downscaling_steps; bool vk_native_texture_lod; bool vk_native_tex_rect; @@ -54,9 +54,9 @@ void vk_blit(unsigned &width, unsigned &height) opts.upscale_deinterlacing = !vk_interlacing; opts.downscale_steps = vk_downscaling_steps; opts.crop_overscan_pixels = vk_overscan; - if (vk_pal_fix) { - opts.crop_rect.top = vk_pal_fix; - opts.crop_rect.bottom = vk_pal_fix; + if (vk_vertical_stretch) { + opts.crop_rect.top = vk_vertical_stretch; + opts.crop_rect.bottom = vk_vertical_stretch; opts.crop_rect.enable = true; } diff --git a/parallel-rdp-standalone/parallel_imp.h b/parallel-rdp-standalone/parallel_imp.h index 37194bc..fff84e7 100644 --- a/parallel-rdp-standalone/parallel_imp.h +++ b/parallel-rdp-standalone/parallel_imp.h @@ -13,7 +13,7 @@ extern "C" extern bool vk_ssdither; extern unsigned vk_overscan; - extern unsigned vk_pal_fix; + extern unsigned vk_vertical_stretch; extern unsigned vk_downscaling_steps; extern bool vk_native_texture_lod; extern bool vk_native_tex_rect;