aboutsummaryrefslogtreecommitdiff
path: root/demos/ScrollView/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'demos/ScrollView/main.cpp')
-rw-r--r--demos/ScrollView/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/ScrollView/main.cpp b/demos/ScrollView/main.cpp
index b049a408..c7b4d0d6 100644
--- a/demos/ScrollView/main.cpp
+++ b/demos/ScrollView/main.cpp
@@ -18,7 +18,7 @@ int main() {
ScrollView scroll_view;
window.AddChild(&scroll_view);
- TextBlock text_block(
+ auto text_block = TextBlock::Create(
uR"([Verse 1]
The snow glows white on the mountain tonight
Not a footprint to be seen
@@ -78,7 +78,7 @@ Let the storm rage on!
The cold never bothered me anyway)",
true);
- scroll_view.SetChild(&text_block);
+ scroll_view.SetChild(text_block.get());
window.GetWindowHost()->GetNativeWindow()->SetVisibility(
cru::platform::gui::WindowVisibilityType::Show);