Removed the useless y1 and y2 parameters from the renderers' blit functions (and other places).

This commit is contained in:
OBattler
2021-09-13 23:19:10 +02:00
parent 7473a1c4b9
commit 96faa28eeb
31 changed files with 119 additions and 130 deletions

View File

@@ -167,16 +167,19 @@ vnc_display(rfbClientPtr cl)
static void
vnc_blit(int x, int y, int y1, int y2, int w, int h)
vnc_blit(int x, int y, int w, int h)
{
uint32_t *p;
int yy;
for (yy=y1; yy<y2; yy++) {
if (h <= 0)
return;
for (yy=0; yy<h; yy++) {
p = (uint32_t *)&(((uint32_t *)rfb->frameBuffer)[yy*VNC_MAX_X]);
if ((y+yy) >= 0 && (y+yy) < VNC_MAX_Y)
memcpy(p, &(buffer32->line[yy]), w*4);
memcpy(p, &(buffer32->line[yy]), w*sizeof(uint32_t));
}
video_blit_complete();