Removed the useless double-buffering in video/video.c, improves performance and reduces RAM usage.

This commit is contained in:
OBattler
2021-09-13 21:02:15 +02:00
parent 7163f3a4c1
commit 13dc05cfd2
5 changed files with 21 additions and 21 deletions

View File

@@ -176,7 +176,7 @@ vnc_blit(int x, int y, int y1, int y2, int w, int h)
p = (uint32_t *)&(((uint32_t *)rfb->frameBuffer)[yy*VNC_MAX_X]);
if ((y+yy) >= 0 && (y+yy) < VNC_MAX_Y)
memcpy(p, &(render_buffer->dat[yy * w]), w*4);
memcpy(p, &(buffer32->line[yy]), w*4);
}
video_blit_complete();