aboutsummaryrefslogtreecommitdiff
path: root/demos/input_method/main.cpp
diff options
context:
space:
mode:
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);