mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
partially revived platform support for PSP (unfinished)
just to have a platform with an unusal screen resolution - suspend/resume handling probably non-working - no scaling settings - no image generation currently no intentions to finish this.
This commit is contained in:
parent
f821bb7011
commit
cdc6aac4c0
17 changed files with 961 additions and 2468 deletions
|
@ -69,6 +69,10 @@ u32 VdpSATCache[128]; // VDP sprite cache (1st 32 sprite attr bits)
|
|||
#define PXCONV(t) ((t & 0x000e000e)<< 1) | ((t & 0x00e000e0)<<2) | ((t & 0x0e000e00)<<3)
|
||||
#define PXMASKL 0x04210421 // 0x0c630c63, LSB for all colours
|
||||
#define PXMASKH 0x39ce39ce // 0x3def3def, all but MSB for all colours
|
||||
#elif defined(USE_BGR565)
|
||||
#define PXCONV(t) ((t & 0x000e000e)<< 1) | ((t & 0x00e000e0)<<3) | ((t & 0x0e000e00)<<4)
|
||||
#define PXMASKL 0x08610861 // 0x18e318e3
|
||||
#define PXMASKH 0x738e738e // 0x7bef7bef
|
||||
#else // RGB565
|
||||
#define PXCONV(t) ((t & 0x000e000e)<<12) | ((t & 0x00e000e0)<<3) | ((t & 0x0e000e00)>>7)
|
||||
#define PXMASKL 0x08610861 // 0x18e318e3
|
||||
|
@ -2004,7 +2008,7 @@ void PicoDrawSetOutFormat(pdso_t which, int use_32x_line_mode)
|
|||
|
||||
void PicoDrawSetOutBufMD(void *dest, int increment)
|
||||
{
|
||||
if (FinalizeLine == FinalizeLine8bit && increment == 328) {
|
||||
if (FinalizeLine == FinalizeLine8bit && increment >= 328) {
|
||||
// kludge for no-copy mode
|
||||
PicoDrawSetInternalBuf(dest, increment);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue