libretro / prosystem-libretro

Port of ProSystem to the libretro API.
GNU General Public License v2.0
14 stars 39 forks source link

Wrong internal resolution causing scaling issues #55

Closed Jamirus238 closed 2 years ago

Jamirus238 commented 3 years ago

Tested on Windows: Taking a screenshot with GPU screenshot turned off results in a 320x223 shot, but the scaling settings indicate that the core always uses a 320x240 resolution, stretching the picture vertically.
This causes obvious problems when you need perfect integer scaling in the vertical direction with e.g. the TVout+interlacing shader: Winter Games-210214-161212

rtomasa commented 2 years ago

I was about opening the same issue. The core always provides wrong 320x240@50Hz in PAL or 320x240@60Hz in NTSC I found out that proper resolutions can be achieved by manually setting:

NTSC
custom_viewport_width = "320"
custom_viewport_height = "223"
PAL
custom_viewport_width = "320"
custom_viewport_height = "272"

This info makes impossible to properly use automatic switchres among others

rtomasa commented 2 years ago

Submitted a new pull request with the fix. @Jamirus238 if you compile the core with my changes games will be displayed as expected.