*PieDraw: Fixed problem with transparent background

git-svn-id: svn://ultimatepp.org/upp/trunk@11655 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
koldo 2018-01-02 22:17:46 +00:00
parent af9fae210a
commit 8255e39818

View file

@ -80,7 +80,8 @@ Color PieDraw::GetCatColor(const int& index) const {
void PieDraw::PaintPie(Draw& w, int scale) {
Size sz = scale*GetSize();
w.DrawRect(sz, backColor);
if (!IsNull(backColor))
w.DrawRect(sz, backColor);
Size textsize;
textsize.cx = 0;
@ -202,6 +203,8 @@ Image PieDraw::GetImage(int scale) {
bp.LineCap(LINECAP_BUTT);
bp.LineJoin(LINEJOIN_MITER);
if(IsNull(backColor))
bp.Clear(RGBAZero());
PaintPie(bp, scale);
return ib;