p32x = dram + dram[l]; \
do_line_dc(dst, p32x, pmd, inv_bit, md_code); \
post_code; \
+ dst += DrawLineDestIncrement32x/2 - 320; \
} \
} \
\
p32x += (lines_sft_offs >> 8) & 1; \
do_line_pp(dst, p32x, pmd, md_code); \
post_code; \
+ dst += DrawLineDestIncrement32x/2 - 320; \
} \
} \
\
p32x = dram + dram[l]; \
do_line_rl(dst, p32x, pmd, md_code); \
post_code; \
+ dst += DrawLineDestIncrement32x/2 - 320; \
} \
}
if (which == PDF_RGB555) {
// need CLUT pixels in PicoDraw2FB for layer transparency
PicoDrawSetInternalBuf(Pico.est.Draw2FB, 328);
- PicoDrawSetOutBufMD(DrawLineDestBase32x, DrawLineDestIncrement32x);
+ PicoDrawSetOutBufMD(NULL, 0);
} else {
// use the same layout as alt renderer
PicoDrawSetInternalBuf(NULL, 0);
unsigned short *pal=est->HighPal;\r
int len;\r
\r
+ if (DrawLineDestIncrement == 0)\r
+ return;\r
+\r
PicoDrawUpdateHighPal();\r
\r
if (Pico.video.reg[12]&1) {\r
len = 256;\r
}\r
\r
- if (DrawLineDestBase == HighColBase) {\r
+ if (DrawLineDestIncrement == 0) {\r
if (!sh && (est->rendstatus & PDRAW_SONIC_MODE))\r
blockcpy_or(pd+8, est->HighCol+8, len, est->SonicPalCount*0x40);\r
} else if (!sh && (est->rendstatus & PDRAW_SONIC_MODE)) {\r
void PicoDrawSetOutFormat(pdso_t which, int use_32x_line_mode)\r
{\r
PicoDrawSetInternalBuf(NULL, 0);\r
+ PicoDrawSetOutBufMD(NULL, 0);\r
PicoDraw2SetOutBuf(NULL);\r
switch (which)\r
{\r
void PicoDrawSetOutBufMD(void *dest, int increment)\r
{\r
if (FinalizeLine == FinalizeLine8bit && increment >= 328) {\r
- // kludge for no-copy mode\r
+ // kludge for no-copy mode, using ALT_RENDERER layout\r
PicoDrawSetInternalBuf(dest, increment);\r
- }\r
-\r
- if (FinalizeLine == NULL)\r
+ } else if (FinalizeLine == NULL) {\r
PicoDraw2SetOutBuf(dest);\r
- else if (dest != NULL) {\r
+ } else if (dest != NULL) {\r
DrawLineDestBase = dest;\r
DrawLineDestIncrement = increment;\r
Pico.est.DrawLineDest = (char *)DrawLineDestBase + Pico.est.DrawScanline * increment;\r
- }\r
- else {\r
+ } else {\r
DrawLineDestBase = DefOutBuff;\r
DrawLineDestIncrement = 0;\r
Pico.est.DrawLineDest = DefOutBuff;\r