From 49c7a4507a2ae21bd431a5e69e970a64f251fb1b Mon Sep 17 00:00:00 2001 From: TangoCash Date: Tue, 2 Nov 2021 22:23:41 +0100 Subject: [PATCH] fix transparency --- src/driver/pictureviewer/nanosvgrast.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/driver/pictureviewer/nanosvgrast.h b/src/driver/pictureviewer/nanosvgrast.h index 3cb743e6a..83b55f8ed 100644 --- a/src/driver/pictureviewer/nanosvgrast.h +++ b/src/driver/pictureviewer/nanosvgrast.h @@ -1544,8 +1544,8 @@ void nsvgRasterizeFull(NSVGrasterizer* r, if (r->scanline == NULL) return; } - // for (i = 0; i < h; i++) - // memset(&dst[i*stride], 0, w*4); + for (i = 0; i < h; i++) + memset(&dst[i*stride], 0, w*4); for (shape = image->shapes; shape != NULL; shape = shape->next) {