diff --git a/upptst/DrawArc/main.cpp b/upptst/DrawArc/main.cpp index 957a4984f..5bda896fb 100644 --- a/upptst/DrawArc/main.cpp +++ b/upptst/DrawArc/main.cpp @@ -1,4 +1,5 @@ #include +#include using namespace Upp; @@ -6,9 +7,8 @@ struct MyApp : TopWindow { virtual void Paint(Draw& w); }; -void MyApp::Paint(Draw& w) +void Test(Draw& w) { - w.DrawRect(GetSize(), White()); Pointf center(350, 300); for(int i = 0; i < 13; i++) { double angle = (i - 3) * M_PI / 6; @@ -29,6 +29,16 @@ void MyApp::Paint(Draw& w) } } +void MyApp::Paint(Draw& w) +{ + w.DrawRect(GetSize(), White()); + Test(w); + ImagePainter iw(700, 600); + iw.Clear(White()); + Test(iw); + w.DrawImage(700, 0, iw); +} + GUI_APP_MAIN { MyApp().Run();