IFSSaver: remove fBounds variable
This commit is contained in:
@@ -47,7 +47,6 @@ IFSSaver::IFSSaver(BMessage* message, image_id id)
|
|||||||
BHandler("IFS Saver"),
|
BHandler("IFS Saver"),
|
||||||
fIFS(NULL),
|
fIFS(NULL),
|
||||||
fIsPreview(false),
|
fIsPreview(false),
|
||||||
fBounds(0.0f, 0.0f, -1.0f, -1.0f),
|
|
||||||
fLastDrawnFrame(0),
|
fLastDrawnFrame(0),
|
||||||
fAdditive(false),
|
fAdditive(false),
|
||||||
fSpeed(6)
|
fSpeed(6)
|
||||||
@@ -157,11 +156,7 @@ IFSSaver::StartSaver(BView* view, bool preview)
|
|||||||
if (view == NULL)
|
if (view == NULL)
|
||||||
return B_BAD_VALUE;
|
return B_BAD_VALUE;
|
||||||
|
|
||||||
fBounds = view->Bounds();
|
_Init(view->Bounds());
|
||||||
if (!fBounds.IsValid())
|
|
||||||
return B_BAD_VALUE;
|
|
||||||
|
|
||||||
_Init(fBounds);
|
|
||||||
if (fIFS == NULL)
|
if (fIFS == NULL)
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ private:
|
|||||||
IFS* fIFS;
|
IFS* fIFS;
|
||||||
|
|
||||||
bool fIsPreview;
|
bool fIsPreview;
|
||||||
BRect fBounds;
|
|
||||||
|
|
||||||
BLocker fLocker;
|
BLocker fLocker;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user