Since there is no option to stretch rendered image vertically beyond screen height I decided to implement one. This could allow to stretch a little more without changing image proportions by clipping upper and lower part of rendered image (something like that is implemented in 'official' ps1 emulator in psp).
This patch adds an option to specify how many 'pixels' (which are actual pixels when height is 240 and scaled accordingly for resolutions that have another height) should be cut from top and bottom of the image (0 to 24).
This option is in 'Display' settings. This option also works correctly with software filters (didn't test much because i have 600MHz unit).
The patch is against latest git code
patch updated to correctly handle sub-192px game resolutions, the number of 'lines' to cut can be any value from 0 to 120 but it'll be automatically capped so that resulting image couldn't be wider than pandora screen (after scaling)
Update 2
This patch adds an option to specify how many 'pixels' (which are actual pixels when height is 240 and scaled accordingly for resolutions that have another height) should be cut from top and bottom of the image (0 to 24).
This option is in 'Display' settings. This option also works correctly with software filters (didn't test much because i have 600MHz unit).
The patch is against latest git code
patch updated to correctly handle sub-192px game resolutions, the number of 'lines' to cut can be any value from 0 to 120 but it'll be automatically capped so that resulting image couldn't be wider than pandora screen (after scaling)
Update 2
- corrected code style to match the one used i this project
- removed original height tracking; use the height passed as h parameter in pl_vout_flip()
- use g_menu_menuscreen_* values to limit the number of lines to cut instead of pandora screen resolution, should work correctly even if height is more than width
- a fix for incorrect y offset calculation with when height > 192 and software filter is being used
- limits passed to software scalers are now correct
Attachments
Last edited by a moderator: