From 6c660f456436614ad146fc8fe48ebe0ee0491d09 Mon Sep 17 00:00:00 2001 From: cxl Date: Thu, 10 Oct 2019 08:51:10 +0000 Subject: [PATCH] plugin/bmp: Fixed unitialized palette issue in WriteIcon git-svn-id: svn://ultimatepp.org/upp/trunk@13636 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/ide/icon.ico | Bin 10134 -> 10134 bytes uppsrc/plugin/bmp/Icon.cpp | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/uppsrc/ide/icon.ico b/uppsrc/ide/icon.ico index f45c821708133e425453b4e975ba359dd9651449..d59b7d36d886c79b9a0c7371d2f1d9d81b898ff1 100644 GIT binary patch delta 58 rcmbQ{Kh1x`C1s)Wj0|7^q7q`?Gn{9f%%dthnNj5@7OBlVs$EO~xw{T9 delta 58 scmbQ{Kh1x`C1s)6OblSa2qY7xs4~oEn#`jrJDE}CCl;yAJgQwx0Ew6kJ^%m! diff --git a/uppsrc/plugin/bmp/Icon.cpp b/uppsrc/plugin/bmp/Icon.cpp index d48648686..4206e91b0 100644 --- a/uppsrc/plugin/bmp/Icon.cpp +++ b/uppsrc/plugin/bmp/Icon.cpp @@ -159,7 +159,7 @@ String WriteIcon(const Vector& icons, int flags) out.Cat((const char *)&bmih, sizeof(bmih)); if(bits <= 8) { int ncolors = 1 << bits; - Buffer palette(ncolors); + Buffer palette(ncolors, RGBAZero()); ImageRaster ir(img); CreatePalette(ir, ~palette, ncolors); cv = new PaletteCv();