diff options
Diffstat (limited to 'demos/ScrollView')
| -rw-r--r-- | demos/ScrollView/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | demos/ScrollView/main.cpp | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/demos/ScrollView/CMakeLists.txt b/demos/ScrollView/CMakeLists.txt index cfa99ebd..8b34f5d8 100644 --- a/demos/ScrollView/CMakeLists.txt +++ b/demos/ScrollView/CMakeLists.txt @@ -8,4 +8,5 @@ if(APPLE) ) endif() +target_add_resources(CruDemoScrollView cru/ui) target_link_libraries(CruDemoScrollView PRIVATE CruDemoBase CruUi) diff --git a/demos/ScrollView/main.cpp b/demos/ScrollView/main.cpp index c7b4d0d6..ba240bae 100644 --- a/demos/ScrollView/main.cpp +++ b/demos/ScrollView/main.cpp @@ -19,7 +19,7 @@ int main() { window.AddChild(&scroll_view); auto text_block = TextBlock::Create( - uR"([Verse 1] + R"([Verse 1] The snow glows white on the mountain tonight Not a footprint to be seen A kingdom of isolation @@ -80,7 +80,7 @@ The cold never bothered me anyway)", scroll_view.SetChild(text_block.get()); - window.GetWindowHost()->GetNativeWindow()->SetVisibility( + window.GetNativeWindow()->SetVisibility( cru::platform::gui::WindowVisibilityType::Show); return application->Run(); |
