From 27b8fd533ac181aabcf1a2bcb2ce8aa82faa64af Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 11 Nov 2014 11:54:11 +0100 Subject: Adapt vcldemo code to layer NONE ...and being run via bin/run, taking care of setting URE_BOOTSTRAP Change-Id: I6a3e54d244cc534e8526a501a075b3df0cc152d5 --- vcl/workben/vcldemo.cxx | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'vcl/workben') diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx index 16574d922754..354c4b3894c0 100644 --- a/vcl/workben/vcldemo.cxx +++ b/vcl/workben/vcldemo.cxx @@ -7,7 +7,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#include #include #include #include @@ -49,22 +48,8 @@ class DemoWin : public DemoBase public: DemoWin() : DemoBase() { - // Needed to find images - OUString aPath; - rtl::Bootstrap::get("SYSBINDIR", aPath); -#ifdef FIXME_THIS_FAILS - rtl::Bootstrap::set("BRAND_BASE_DIR", aPath + "/.."); - if (Application::LoadBrandBitmap("intro", maIntro)) + if (!Application::LoadBrandBitmap("intro", maIntro)) Application::Abort("Failed to load intro image"); -#else - aPath = aPath + "/intro.png"; - SvFileStream aFileStream( aPath, STREAM_READ ); - GraphicFilter aGraphicFilter(false); - Graphic aGraphic; - if (aGraphicFilter.ImportGraphic(aGraphic, aPath, aFileStream) != 0) - Application::Abort("Failed to load intro image: " + aPath); - maIntro = aGraphic.GetBitmapEx(); -#endif maIntroBW = maIntro.GetBitmap(); maIntroBW.Filter( BMP_FILTER_EMBOSS_GREY ); } -- cgit