Clock: TOffscreenView: small cleanup
This commit is contained in:
@@ -33,23 +33,10 @@ TOffscreenView::TOffscreenView(BRect frame, const char *name, short mRadius,
|
|||||||
fShowSeconds(show)
|
fShowSeconds(show)
|
||||||
{
|
{
|
||||||
status_t error;
|
status_t error;
|
||||||
#ifdef __HAIKU__
|
|
||||||
BResources rsrcs;
|
BResources rsrcs;
|
||||||
error = rsrcs.SetToImage(&&dummy_label);
|
error = rsrcs.SetToImage(&&dummy_label);
|
||||||
dummy_label:
|
dummy_label:
|
||||||
if (error == B_OK) {
|
if (error == B_OK) {
|
||||||
{
|
|
||||||
#else
|
|
||||||
// Note: Since we can be run as replicant, we get our
|
|
||||||
// resources this way, not via be_app->AppResources().
|
|
||||||
entry_ref ref;
|
|
||||||
error = be_roster->FindApp(kAppSignature, &ref);
|
|
||||||
if (error == B_NO_ERROR) {
|
|
||||||
BFile file(&ref, O_RDONLY);
|
|
||||||
error = file.InitCheck();
|
|
||||||
if (error == B_NO_ERROR) {
|
|
||||||
BResources rsrcs(&file);
|
|
||||||
#endif
|
|
||||||
for (short i = 0; i <= 8; i++)
|
for (short i = 0; i <= 8; i++)
|
||||||
fClockFace[i] = NULL;
|
fClockFace[i] = NULL;
|
||||||
|
|
||||||
@@ -78,7 +65,6 @@ dummy_label:
|
|||||||
free(picH);
|
free(picH);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
float x, y;
|
float x, y;
|
||||||
float counter;
|
float counter;
|
||||||
|
|||||||
Reference in New Issue
Block a user