This check is no longer needed, since the case is covered by the one
in DirectWindowData::SetState(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32375 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
3e20b06294
commit
b7c167dbe2
@ -135,7 +135,6 @@ public:
|
|||||||
|
|
||||||
BRect old_window_frame;
|
BRect old_window_frame;
|
||||||
direct_buffer_info *buffer_info;
|
direct_buffer_info *buffer_info;
|
||||||
bool started;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
sem_id fSem;
|
sem_id fSem;
|
||||||
@ -147,7 +146,6 @@ private:
|
|||||||
DirectWindowData::DirectWindowData()
|
DirectWindowData::DirectWindowData()
|
||||||
:
|
:
|
||||||
buffer_info(NULL),
|
buffer_info(NULL),
|
||||||
started(false),
|
|
||||||
fSem(-1),
|
fSem(-1),
|
||||||
fAcknowledgeSem(-1),
|
fAcknowledgeSem(-1),
|
||||||
fBufferArea(-1)
|
fBufferArea(-1)
|
||||||
@ -233,8 +231,6 @@ DirectWindowData::SetState(const direct_buffer_state &bufferState,
|
|||||||
if (driverState != -1)
|
if (driverState != -1)
|
||||||
buffer_info->driver_state = driverState;
|
buffer_info->driver_state = driverState;
|
||||||
|
|
||||||
started = true;
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3564,9 +3560,7 @@ ServerWindow::HandleDirectConnection(int32 bufferState, int32 driverState)
|
|||||||
STRACE(("HandleDirectConnection(bufferState = %ld, driverState = %ld)\n",
|
STRACE(("HandleDirectConnection(bufferState = %ld, driverState = %ld)\n",
|
||||||
bufferState, driverState));
|
bufferState, driverState));
|
||||||
|
|
||||||
if (fDirectWindowData == NULL
|
if (fDirectWindowData == NULL)
|
||||||
|| (!fDirectWindowData->started
|
|
||||||
&& (bufferState & B_DIRECT_MODE_MASK) != B_DIRECT_START))
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!fDirectWindowData->SetState((direct_buffer_state)bufferState,
|
if (!fDirectWindowData->SetState((direct_buffer_state)bufferState,
|
||||||
|
Loading…
Reference in New Issue
Block a user