3dmov: Convert to current DirectConnected api

* Not sure when this older method went away,
  but nothing uses it anymore.
* You now see a book when you launch 3dmov
* Still crashy
This commit is contained in:
Alexander von Gluck IV 2012-03-16 01:31:38 +00:00
parent 66765679d4
commit b2bcacdef6

View File

@ -187,6 +187,8 @@ void MainWindow :: MessageReceived(BMessage *message)
*/
bool MainWindow :: QuitRequested()
{
if (fCurrentView != NULL)
fCurrentView->EnableDirectMode(false);
//be_app->PostMessage(B_QUIT_REQUESTED);
return true;
}
@ -198,19 +200,9 @@ bool MainWindow :: QuitRequested()
*/
void MainWindow :: DirectConnected(direct_buffer_info *info)
{
switch (info->buffer_state & B_DIRECT_MODE_MASK)
{
// start a direct screen connection.
case B_DIRECT_START :
break;
// stop a direct screen connection.
case B_DIRECT_STOP :
break;
// modify the state of a direct screen connection.
case B_DIRECT_MODIFY :
break;
default :
break;
if (fCurrentView != NULL) {
fCurrentView->DirectConnected(info);
fCurrentView->EnableDirectMode(true);
}
}