psp, scaling revisited

This commit is contained in:
kub 2021-09-10 18:53:31 +02:00
parent d5d1778252
commit 0924243a53
6 changed files with 57 additions and 119 deletions

View file

@ -40,10 +40,19 @@ enum {
// linux, GP2X:
EOPT_SCALE_SW = 1,
EOPT_SCALE_HW,
// PSP horiz:
EOPT_SCALE_43 = 1, // DAR 4:3 (12:9)
EOPT_SCALE_WIDE, // DAR 14:9
EOPT_SCALE_FULL, // DAR 16:9
// PSP vert:
EOPT_VSCALE_PAL = 1, // always 240 lines
EOPT_VSCALE_FULL, // zoomed to full height
};
enum {
EOPT_FILTER_NONE = 0,
// PSP texture filtering
EOPT_FILTER_BILINEAR = 1,
// software scalers
EOPT_FILTER_SMOOTHER = 1,
EOPT_FILTER_BILINEAR1,
@ -75,8 +84,6 @@ typedef struct _currentConfig_t {
int scaling; // EOPT_SCALE_*
int vscaling;
int rotation; // for UIQ
float scale; // psp: screen scale
float hscale32, hscale40; // psp: horizontal scale
int gamma2; // psp: black level
int turbo_rate;
int renderer;