From bbad81d6832e3564e303df56397cae562b50c961 Mon Sep 17 00:00:00 2001 From: owenca Date: Mon, 10 Sep 2018 06:51:55 +0000 Subject: [PATCH] Fix background bitmap image. Fixes #1 --- MainWindow.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/MainWindow.h b/MainWindow.h index 88c91c9..00aaae0 100644 --- a/MainWindow.h +++ b/MainWindow.h @@ -10,6 +10,9 @@ #include #include +#include +#include +#include #include #include #include @@ -29,7 +32,13 @@ class BackView : public BView BackView(BRect r, const char* t, uint32 fl, uint32 fl2) : BView(r, t, fl, fl2) { fBackgroundColor = BScreen().DesktopColor(); - bitmap = BTranslationUtils::GetBitmap("/boot/home/hexvexed/background.png"); + app_info info; + be_roster->GetActiveAppInfo(&info); + BEntry entry(&info.ref); + BPath path; + entry.GetPath(&path); + path.Append("backgrounds/background.png"); + bitmap = BTranslationUtils::GetBitmap(path.Path()); }