git @ Cat's Eye Technologies linapple / f0af7ba
Fixed scanlines not showing up on TVEMU only, which uses CopyMixedSource() instead of CopySource() like the other video modes. ghedger authored 6 years ago T. Joseph Carter committed 3 years ago
1 changed file(s) with 8 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
275275 --bytesleft;
276276 // GPH Provide scanlines for all but first couple of modes
277277 // TODO: Optimize
278 if( ysize & 1 || VT_COLOR_STANDARD >= g_videotype )
278 if( ysize & 1 || VT_COLOR_TVEMU > g_videotype )
279279 *(currdestptr+bytesleft) = *(currsourceptr+bytesleft);
280280 else
281281 *(currdestptr+bytesleft) = 0;
285285 bytesleft -= 4;
286286 // GPH Provide scanlines for all but first couple of modes
287287 // TODO: Optimize
288 if( ysize & 1 || VT_COLOR_STANDARD >= g_videotype )
288 if( ysize & 1 || VT_COLOR_TVEMU > g_videotype )
289289 *(LPDWORD)(currdestptr+bytesleft) = *(LPDWORD)(currsourceptr+bytesleft);
290290 else
291291 *(currdestptr+bytesleft) = 0;
806806
807807 // GPH Provide scanlines for all but first couple of modes
808808 // TODO: Optimize this
809 if( VT_COLOR_STANDARD >= g_videotype ) {
809 if( VT_COLOR_TVEMU > g_videotype ) {
810810 SETSOURCEPIXEL(SRCOFFS_HIRES+coloffs+x+adj ,y+1,aColorIndex[color]); // BL
811811 SETSOURCEPIXEL(SRCOFFS_HIRES+coloffs+x+adj+1,y+1,aColorIndex[color]); // BR
812812 } else {
13001300 for (i = istart;
13011301 i <= iend;
13021302 currptr += framebufferpitch, i++) { // and vice versa
1303 *currptr = *(currptr+1) = colormixbuffer[i];
1303 if( ~i & 1 )
1304 *currptr = *(currptr+1) = colormixbuffer[i];
1305 else
1306 *currptr = 0;
1307
13041308 }
13051309 }
13061310 }