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()); }