diff options
Diffstat (limited to 'demos')
-rw-r--r-- | demos/input_method/main.cpp | 2 | ||||
-rw-r--r-- | demos/svg_path/main.cpp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/demos/input_method/main.cpp b/demos/input_method/main.cpp index 7d55f2db..abbbed2c 100644 --- a/demos/input_method/main.cpp +++ b/demos/input_method/main.cpp @@ -99,6 +99,8 @@ int main() { cursor_lefttop.height}, brush.get()); } + + painter->EndDraw(); }); window->KeyDownEvent()->AddHandler( diff --git a/demos/svg_path/main.cpp b/demos/svg_path/main.cpp index 970aa317..87c410e9 100644 --- a/demos/svg_path/main.cpp +++ b/demos/svg_path/main.cpp @@ -39,6 +39,7 @@ M6.5 0a.5.5 0 0 0 0 1H7v1.07a7.001 7.001 0 0 0-3.273 12.474l-.602.602a.5.5 0 0 0 painter->ConcatTransform(Matrix::Scale(10, 10)); painter->FillGeometry(geometry.get(), brush.get()); painter->PopState(); + painter->EndDraw(); }); window->SetVisibility(WindowVisibilityType::Show); |