From 2e1582af1f13c4d229124bedae63cfeabfdfa83f Mon Sep 17 00:00:00 2001 From: nick black Date: Sat, 27 Mar 2021 12:40:04 -0400 Subject: [PATCH] plane_blit_sixel: move back to memcpy() --- src/lib/internal.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/lib/internal.h b/src/lib/internal.h index 41235834a..a7ced8e7e 100644 --- a/src/lib/internal.h +++ b/src/lib/internal.h @@ -1182,11 +1182,7 @@ plane_blit_sixel(ncplane* n, char* s, int bytes, int placey, int placex, for(int y = placey ; y < placey + leny && y < ncplane_dim_y(n) ; ++y){ for(int x = placex ; x < placex + lenx && x < ncplane_dim_x(n) ; ++x){ nccell* c = ncplane_cell_ref_yx(n, y, x); - if(x == placex){ - memcpy(&c->gcluster, &gcluster, sizeof(gcluster)); - }else{ - c->gcluster = 0; - } + memcpy(&c->gcluster, &gcluster, sizeof(gcluster)); c->width = lenx; } }