diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-09-08 23:08:10 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-09-08 23:08:10 +0800 |
commit | 37d9a034013b4245a50c0d748dc83d2c3d136210 (patch) | |
tree | 3cee1be334acc4d917e9d6b3cbe3e03b653116ac /demos/ScrollView/main.cpp | |
parent | 0b0c32a1d688389c36f1847edf77af1fd7a2f9d7 (diff) | |
download | cru-37d9a034013b4245a50c0d748dc83d2c3d136210.tar.gz cru-37d9a034013b4245a50c0d748dc83d2c3d136210.tar.bz2 cru-37d9a034013b4245a50c0d748dc83d2c3d136210.zip |
Fix windows dynamic lib build.
Diffstat (limited to 'demos/ScrollView/main.cpp')
-rw-r--r-- | demos/ScrollView/main.cpp | 4 |
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); |