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:
Stefano Ceccherini 2009-08-14 16:40:44 +00:00
parent 3e20b06294
commit b7c167dbe2

View File

@ -135,7 +135,6 @@ public:
BRect old_window_frame;
direct_buffer_info *buffer_info;
bool started;
private:
sem_id fSem;
@ -147,7 +146,6 @@ private:
DirectWindowData::DirectWindowData()
:
buffer_info(NULL),
started(false),
fSem(-1),
fAcknowledgeSem(-1),
fBufferArea(-1)
@ -232,9 +230,7 @@ DirectWindowData::SetState(const direct_buffer_state &bufferState,
buffer_info->buffer_state = bufferState;
if (driverState != -1)
buffer_info->driver_state = driverState;
started = true;
return true;
}
@ -3564,9 +3560,7 @@ ServerWindow::HandleDirectConnection(int32 bufferState, int32 driverState)
STRACE(("HandleDirectConnection(bufferState = %ld, driverState = %ld)\n",
bufferState, driverState));
if (fDirectWindowData == NULL
|| (!fDirectWindowData->started
&& (bufferState & B_DIRECT_MODE_MASK) != B_DIRECT_START))
if (fDirectWindowData == NULL)
return;
if (!fDirectWindowData->SetState((direct_buffer_state)bufferState,