aboutsummaryrefslogtreecommitdiff
path: root/demos/input_method/main.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-10-29 00:01:26 +0800
committercrupest <crupest@outlook.com>2020-10-29 00:01:26 +0800
commit52594324b302f6e9da10ac01fe803196371bb2d9 (patch)
tree38dd36e0bf934b283dd80f808531a2ee862b174b /demos/input_method/main.cpp
parentdf4df679e157f974773dad7776b204e9d4f3009e (diff)
downloadcru-52594324b302f6e9da10ac01fe803196371bb2d9.tar.gz
cru-52594324b302f6e9da10ac01fe803196371bb2d9.tar.bz2
cru-52594324b302f6e9da10ac01fe803196371bb2d9.zip
...
Diffstat (limited to 'demos/input_method/main.cpp')
-rw-r--r--demos/input_method/main.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/demos/input_method/main.cpp b/demos/input_method/main.cpp
index bff0e1d3..06098253 100644
--- a/demos/input_method/main.cpp
+++ b/demos/input_method/main.cpp
@@ -14,12 +14,9 @@ int main() {
auto graph_factory = application->GetGraphFactory();
- auto window_resolver = application->CreateWindow(nullptr);
+ auto window = application->CreateWindow(nullptr);
- auto window = window_resolver->Resolve();
-
- auto input_method_context =
- application->GetInputMethodManager()->GetContext(window);
+ auto input_method_context = window->GetInputMethodContext();
auto brush = graph_factory->CreateSolidColorBrush();
brush->SetColor(colors::black);