aboutsummaryrefslogtreecommitdiff
path: root/demos/input_method
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-04-21 23:41:36 +0800
committercrupest <crupest@outlook.com>2020-04-21 23:41:36 +0800
commitf42531cc4c0f49451c4df30e4243e39581751215 (patch)
tree6a028abc4a8e7524fecbbd13ab45a92c94bee184 /demos/input_method
parentdf18bb392bde50fd195a0b94726df79b9c76e2e1 (diff)
downloadcru-f42531cc4c0f49451c4df30e4243e39581751215.tar.gz
cru-f42531cc4c0f49451c4df30e4243e39581751215.tar.bz2
cru-f42531cc4c0f49451c4df30e4243e39581751215.zip
...
Diffstat (limited to 'demos/input_method')
-rw-r--r--demos/input_method/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/demos/input_method/main.cpp b/demos/input_method/main.cpp
index 041941bd..a3ac1b96 100644
--- a/demos/input_method/main.cpp
+++ b/demos/input_method/main.cpp
@@ -63,6 +63,7 @@ int main() {
font,
committed_text +
(optional_composition_text ? optional_composition_text->text : ""));
+ text_layout->SetMaxWidth(window_width);
if (optional_composition_text) {
const auto& composition_text = *optional_composition_text;