mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
PainterExamples
git-svn-id: svn://ultimatepp.org/upp/trunk@844 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
42e9dc7727
commit
98108bde13
6 changed files with 100 additions and 56 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue