head 1.2; access; symbols; locks; strict; comment @// @; 1.2 date 2023.10.19.15.59.52; author tsutsui; state dead; branches; next 1.1; commitid 5o44aD1fQBYFIfJE; 1.1 date 2023.10.10.14.20.53; author tsutsui; state Exp; branches; next ; commitid bXjtp1Uk1xXMs5IE; desc @@ 1.2 log @sayaka: remove obsolete patch (forgot in previous). @ text @$NetBSD: patch-src_ImageLoaderWebp.cpp,v 1.1 2023/10/10 14:20:53 tsutsui Exp $ - fix a problem that webp images with alpha channel are not shown properly. --- src/ImageLoaderWebp.cpp.orig 2023-10-09 11:22:42.000000000 +0000 +++ src/ImageLoaderWebp.cpp @@@@ -239,12 +239,10 @@@@ ImageLoaderWebp::Load(Image& img) // RGBA 出力バッファを用意。 int stride = width * 4; int outbufsize = stride * height; - std::vector outbuf(outbufsize); // RGBA で出力。 config.output.colorspace = MODE_RGBA; - config.output.u.RGBA.rgba = outbuf.data(); - config.output.u.RGBA.size = outbuf.size(); + config.output.u.RGBA.size = outbufsize; config.output.u.RGBA.stride = stride; int status = WebPDecode(filebuf.data(), filebuf.size(), &config); if (status != VP8_STATUS_OK) { @@@@ -253,7 +251,7 @@@@ ImageLoaderWebp::Load(Image& img) } // RGB に変換。 - RGBAtoRGB(img.GetBuf(), outbuf.data(), width, height, stride, TRANSBG); + RGBAtoRGB(img.GetBuf(), config.output.u.RGBA.rgba, width, height, stride, TRANSBG); rv = true; abort_alpha: WebPFreeDecBuffer(&config.output); @ 1.1 log @sayaka: update to 3.7.1. pkgsrc changes: - workaround build errors of gcc7 on netbsd-9 - fix a problem that webp images with alpha channel are not shown properly Upstream changes: * 3.7.1 (2023/10/09) - fix failures on drawing WebP images in some cases - fix infinite loop on emoji notification messages * 3.7.0 (2023/10/09) - start support of Misskey - drop functions to connect to Twitter - drop --filter, --home, --no-rest, --post, and --token options - add --twitter, --misskey, and --local options - temporarily drop --ngword-* and --show-ng options - rename --black/--white options to --dark/--light @ text @d1 1 a1 1 $NetBSD$ @