DrawBench cairo optimization

git-svn-id: svn://ultimatepp.org/upp/trunk@765 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-01-16 16:52:02 +00:00
parent e0966b540d
commit 888812b003

View file

@ -27,6 +27,9 @@ void AddRect(Cairo &c, double size)
c.Rotate(-M_PI/4.);
AddRect(c, size / M_SQRT2);
c.Restore();
c.Fill();
}
void DoRect(Painter &sw, double size)
@ -76,7 +79,6 @@ void DrawPythagorasTree(Size sz, Painter *sw, Cairo *ca)
ca->MoveTo(sz.cx/2, size/2);
AddRect(*ca, size);
ca->SetSourceRGB(Black());
ca->Fill();
ca->Restore();
}
}