notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some support for vdp debug reg
[picodrive.git]
/
pico
/
mode4.c
diff --git
a/pico/mode4.c
b/pico/mode4.c
index
1f9adff
..
bda1188
100644
(file)
--- a/
pico/mode4.c
+++ b/
pico/mode4.c
@@
-179,15
+179,15
@@
static void DrawDisplayM4(int scanline)
dx += cellskip << 3;
// low priority tiles
dx += cellskip << 3;
// low priority tiles
- if (
PicoDrawMask & PDRAW_LAYERB_ON
)
+ if (
!(pv->debug_p & PVD_KILL_B)
)
draw_strip(nametab, dx, cells, tilex | 0x0000 | (ty << 16));
// sprites
draw_strip(nametab, dx, cells, tilex | 0x0000 | (ty << 16));
// sprites
- if (
PicoDrawMask & PDRAW_SPRITES_LOW_ON
)
+ if (
!(pv->debug_p & PVD_KILL_S_LO)
)
draw_sprites(scanline);
// high priority tiles (use virtual layer switch just for fun)
draw_sprites(scanline);
// high priority tiles (use virtual layer switch just for fun)
- if (
PicoDrawMask & PDRAW_LAYERA_ON
)
+ if (
!(pv->debug_p & PVD_KILL_A)
)
draw_strip(nametab, dx, cells, tilex | 0x1000 | (ty << 16));
if (pv->reg[0] & 0x20)
draw_strip(nametab, dx, cells, tilex | 0x1000 | (ty << 16));
if (pv->reg[0] & 0x20)
@@
-249,7
+249,7
@@
void PicoLineMode4(int line)
void PicoDoHighPal555M4(void)
{
unsigned int *spal=(void *)Pico.cram;
void PicoDoHighPal555M4(void)
{
unsigned int *spal=(void *)Pico.cram;
- unsigned int *dpal=(void *)HighPal;
+ unsigned int *dpal=(void *)
Pico.est.
HighPal;
unsigned int t;
int i;
unsigned int t;
int i;
@@
-267,7
+267,7
@@
void PicoDoHighPal555M4(void)
t |= (t >> 4) & 0x08610861;
*dpal = t;
}
t |= (t >> 4) & 0x08610861;
*dpal = t;
}
- HighPal[0xe0] = 0;
+
Pico.est.
HighPal[0xe0] = 0;
}
static void FinalizeLineRGB555M4(int line)
}
static void FinalizeLineRGB555M4(int line)