mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
*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:
parent
af9fae210a
commit
8255e39818
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue