PainterExamples

git-svn-id: svn://ultimatepp.org/upp/trunk@844 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-02-09 08:22:30 +00:00
parent 42e9dc7727
commit 98108bde13
6 changed files with 100 additions and 56 deletions

View file

@ -30,7 +30,9 @@ void App::DoPaint0(Painter& sw)
sw.Opacity(~ctrl.opacity);
sw.LineCap(~ctrl.linecap);
sw.LineJoin(~ctrl.linejoin);
{ PAINTER_TIMING("FILL");
sw.Clear(White());
}
PAINTER_TIMING("Paint");
if(list.IsCursor())
Examples()[list.GetCursor()].example(sw);
@ -64,7 +66,7 @@ void App::Benchmark()
for(;;) {
time = GetTickCount();
if(time - time0 > 1000) break;
ImageBuffer ib(GetSize());
ImageBuffer ib(800, 600);
BufferPainter sw(ib);
DoPaint(sw);
n++;