All of my posts in this thread edited to remove obslote info. All of my changes are in my fork.
Get my fork here: https://github.com/ariok-x/mednafen-libretro.git
Only use it to compile the pce_fast module, no others.
make core=pce_fast
What it does:
Turn off aspect ratio correction in Mednafen. (square pixels)
Get rid of the Keep Aspect core option. (just causes confusion, we control the aspect ratio)
Add new core options Scanline Start and Scanline End. (allow us to crop)
Handle our Scanline Start and Scanline End options in retro_run(). (crop)
#define MEDNAFEN_CORE_GEOMETRY_ASPECT_RATIO (6.0 / 5.0). (compromise/TV ratio 288x240)
These changes should allow switching to different aspect ratios and cropping(with user chosen scanline output) as needed.
Example usage:
Use “Core Provided” (6:5) to make all games the same width (Equivalent to setting Mednafen to “correct aspect”). Use 1:1 PAR for “hi-res” games (Ninja Spirit). Use 16:15 for “normal” games. (Setting the new scanline options to anything other than 0 and 239 in Core Settings changes aspect ratio.)
The default values for Scanline Start (4), Scanline End (235) and aspect ratio (6:5) mimic Mednafen defaults. Change the defaults as you see fit.
The point is the end user controls what is output and how it is output.