Skip to content

Commit

Permalink
Merge pull request #9 from owenca/master
Browse files Browse the repository at this point in the history
Fix background bitmap image. See #1
  • Loading branch information
scottmc authored Sep 11, 2018
2 parents 1ff24a3 + bbad81d commit 64af87e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion MainWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

#include <Application.h>
#include <Bitmap.h>
#include <Entry.h>
#include <Path.h>
#include <Roster.h>
#include <Screen.h>
#include <Window.h>
#include <MenuBar.h>
Expand All @@ -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());
}


Expand Down

0 comments on commit 64af87e

Please sign in to comment.