Beginning of the process to remove vid_blit_memtoscreen_8() to get rid of the flickering on QT.
This commit is contained in:
@@ -354,6 +354,9 @@ cga_poll(void *p)
|
||||
|
||||
Composite_Process(cga->cgamode, border, x >> 2, buffer32->line[(cga->displine << 1)]);
|
||||
Composite_Process(cga->cgamode, border, x >> 2, buffer32->line[(cga->displine << 1) + 1]);
|
||||
} else {
|
||||
video_process_8(x, cga->displine << 1);
|
||||
video_process_8(x, (cga->displine << 1) + 1);
|
||||
}
|
||||
|
||||
cga->sc = oldsc;
|
||||
@@ -448,19 +451,11 @@ cga_poll(void *p)
|
||||
}
|
||||
|
||||
if (enable_overscan) {
|
||||
if (cga->composite)
|
||||
video_blit_memtoscreen(0, (cga->firstline - 4) << 1,
|
||||
xsize, ((cga->lastline - cga->firstline) + 8) << 1);
|
||||
else
|
||||
video_blit_memtoscreen_8(0, (cga->firstline - 4) << 1,
|
||||
xsize, ((cga->lastline - cga->firstline) + 8) << 1);
|
||||
video_blit_memtoscreen(0, (cga->firstline - 4) << 1,
|
||||
xsize, ((cga->lastline - cga->firstline) + 8) << 1);
|
||||
} else {
|
||||
if (cga->composite)
|
||||
video_blit_memtoscreen(8, cga->firstline << 1,
|
||||
xsize, (cga->lastline - cga->firstline) << 1);
|
||||
else
|
||||
video_blit_memtoscreen_8(8, cga->firstline << 1,
|
||||
xsize, (cga->lastline - cga->firstline) << 1);
|
||||
video_blit_memtoscreen(8, cga->firstline << 1,
|
||||
xsize, (cga->lastline - cga->firstline) << 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -535,6 +535,19 @@ video_blend_monitor(int x, int y, int monitor_index)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
video_process_8_monitor(int x, int y, int monitor_index)
|
||||
{
|
||||
int xx;
|
||||
|
||||
for (xx = 0; xx < x; xx++) {
|
||||
if (monitors[monitor_index].target_buffer->line[y][xx] <= 0xff)
|
||||
monitors[monitor_index].target_buffer->line[y][xx] = monitors[monitor_index].mon_pal_lookup[monitors[monitor_index].target_buffer->line[y][xx]];
|
||||
else
|
||||
monitors[monitor_index].target_buffer->line[y][xx] = 0x00000000;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
video_blit_memtoscreen_8_monitor(int x, int y, int w, int h, int monitor_index)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user