IFSSaver: style fix, check if NULL explicitly
This commit is contained in:
@@ -226,7 +226,7 @@ IFSSaver::DirectDraw(int32 frame)
|
|||||||
fLastDrawnFrame = -1;
|
fLastDrawnFrame = -1;
|
||||||
|
|
||||||
int32 frames = frame - fLastDrawnFrame;
|
int32 frames = frame - fLastDrawnFrame;
|
||||||
if (fDirectInfo.bits) {
|
if (fDirectInfo.bits != NULL) {
|
||||||
fIFS->Draw(NULL, &fDirectInfo, frames);
|
fIFS->Draw(NULL, &fDirectInfo, frames);
|
||||||
fLastDrawnFrame = frame;
|
fLastDrawnFrame = frame;
|
||||||
}
|
}
|
||||||
@@ -252,7 +252,7 @@ IFSSaver::MessageReceived(BMessage* message)
|
|||||||
{
|
{
|
||||||
switch (message->what) {
|
switch (message->what) {
|
||||||
case kMsgToggleAdditive:
|
case kMsgToggleAdditive:
|
||||||
if (fLocker.Lock() && fIFS) {
|
if (fLocker.Lock() && fIFS != NULL) {
|
||||||
fAdditive = fAdditiveCB->Value() == B_CONTROL_ON;
|
fAdditive = fAdditiveCB->Value() == B_CONTROL_ON;
|
||||||
fIFS->SetAdditive(fAdditive || fIsPreview);
|
fIFS->SetAdditive(fAdditive || fIsPreview);
|
||||||
fLocker.Unlock();
|
fLocker.Unlock();
|
||||||
@@ -260,7 +260,7 @@ IFSSaver::MessageReceived(BMessage* message)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case kMsgSetSpeed:
|
case kMsgSetSpeed:
|
||||||
if (fLocker.Lock() && fIFS) {
|
if (fLocker.Lock() && fIFS != NULL) {
|
||||||
fSpeed = fSpeedS->Value();
|
fSpeed = fSpeedS->Value();
|
||||||
fIFS->SetSpeed(fSpeed);
|
fIFS->SetSpeed(fSpeed);
|
||||||
fLocker.Unlock();
|
fLocker.Unlock();
|
||||||
|
|||||||
Reference in New Issue
Block a user