diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2015-11-06 19:13:34 +0100 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2015-11-06 19:13:34 +0100 |
| commit | 90b92301558237fcdbe8acdc8265dae56f5685e5 (patch) | |
| tree | 2f6b776047a071bd4df29d295933dc81e74818b3 /dash | |
| parent | a048736eff3e89474a7b7c313f8d726aa4ef77bf (diff) | |
StandaloneDash: add default ubuntu background
(bzr r4008.14.9)
Diffstat (limited to 'dash')
| -rw-r--r-- | dash/StandaloneDash.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dash/StandaloneDash.cpp b/dash/StandaloneDash.cpp index 5561bbf30..81b0a6aa1 100644 --- a/dash/StandaloneDash.cpp +++ b/dash/StandaloneDash.cpp @@ -125,6 +125,12 @@ int main(int argc, char **argv) WIDTH.CP(scale), HEIGHT.CP(scale), 0, &TestRunner::InitWindowThread, test_runner)); + nux::ObjectPtr<nux::BaseTexture> background_tex; + background_tex.Adopt(nux::CreateTextureFromFile("/usr/share/backgrounds/warty-final-ubuntu.png")); + nux::TexCoordXForm texxform; + auto tex_layer = std::make_shared<nux::TextureLayer>(background_tex->GetDeviceTexture(), texxform, nux::color::White); + wt->SetWindowBackgroundPaintLayer(tex_layer.get()); + nux::NuxTimerTickSource tick_source; nux::animation::AnimationController animation_controller(tick_source); wt->Run(nullptr); |
