else
{
uint16_t *s = gpu.vram;
- d = screen->pixels;
+ d = (uint32_t *)screen->pixels;
for (i = 0; i < 1024 * 512; i++)
d[i] = (((uint32_t)s[i] << 19) & 0xf80000) | ((s[i] << 6) & 0xf800) |
((s[i] >> 7) & 0xf8);
void GPUupdateLace(void)
{
- if (!gpu.status.blanking)
+ if (!gpu.status.blanking && gpu.state.fb_dirty) {
+ renderer_flush_queues();
blit();
+ gpu.state.fb_dirty = 0;
+ }
}
long GPUopen(void **dpy)