aboutsummaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-05-07 18:39:51 +0800
committercrupest <crupest@outlook.com>2022-05-07 18:39:51 +0800
commita465e2c410c1ae5098d2e073442219bb07a31b9d (patch)
treed60e6692e8dad6d4df2b9709819bf65f0f797422 /demos
parent23e68dc785d274327efeecb22cfc712c71cfbfc0 (diff)
downloadcru-a465e2c410c1ae5098d2e073442219bb07a31b9d.tar.gz
cru-a465e2c410c1ae5098d2e073442219bb07a31b9d.tar.bz2
cru-a465e2c410c1ae5098d2e073442219bb07a31b9d.zip
...
Diffstat (limited to 'demos')
-rw-r--r--demos/input_method/main.cpp2
-rw-r--r--demos/svg_path/main.cpp1
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);