ClipToPicture test: Start the interesting test.

* Also fix the compare graphics to what they are actually supposed to look
   for the nested states test.
This commit is contained in:
Stephan Aßmus 2014-02-01 22:12:21 +01:00
parent ad3318b33d
commit 7212dd427a
1 changed files with 3 additions and 2 deletions

View File

@ -365,7 +365,7 @@ class Test4Clipping : public TestRenderer {
view->ClipToPicture(&picture);
view->PushState();
view->SetScale(3.0);
view->SetScale(2.0);
view->ClipToPicture(&picture);
view->FillRect(view->Bounds());
@ -383,7 +383,7 @@ class Test4Validate : public TestRenderer {
view->DrawString("Clipping", BPoint(10, 15));
view->SetScale(2.0);
view->DrawString("Clipping", BPoint(10, 15));
view->SetScale(3.0);
view->SetScale(4.0);
view->DrawString("Clipping", BPoint(10, 15));
}
};
@ -411,6 +411,7 @@ main(int argc, char** argv)
window->AddTest(new Test("Nested states",
new Test4Clipping(), new Test4Validate()));
window->SetToTest(3);
window->Show();
app.Run();