From 00113ff97bec1eec69d17262a8831f7ee5c154ec Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 1 Feb 2006 00:17:47 +0000 Subject: [PATCH] Couldn't resist using one of the nice new BResources::SetToImage() methods. Currently guarded by an "#ifdef __HAIKU__", as long as we want to be able to build a BeOS compatible Clock. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16177 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/clock/cl_view.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/apps/clock/cl_view.cpp b/src/apps/clock/cl_view.cpp index e853f6d540..fea58fbced 100644 --- a/src/apps/clock/cl_view.cpp +++ b/src/apps/clock/cl_view.cpp @@ -48,6 +48,13 @@ TOffscreenView::TOffscreenView(BRect frame, char *name, short mRadius, for (index = 0; index <= 8; index++) fClockFace[index] = NULL; +#ifdef __HAIKU__ + BResources rsrcs; + error = rsrcs.SetToImage(&&dummy_label); +dummy_label: + if (error == B_OK) { + { +#else // !__HAIKU__ // Note: Since we can be run as replicant, we get our resources this way, // not via be_app->AppResources(). error = be_roster->FindApp(app_signature, &ref); @@ -57,6 +64,7 @@ TOffscreenView::TOffscreenView(BRect frame, char *name, short mRadius, error = file.InitCheck(); if (error == B_NO_ERROR) { BResources rsrcs(&file); +#endif // !__HAIKU__ for (loop = 0; loop <= 8; loop++) { if ((picH = rsrcs.FindResource('PICT', loop+4, &len))) {