summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander von Gluck IV <kallisti5@unixzen.com>2012-03-16 01:31:38 (GMT)
committerAlexander von Gluck IV <kallisti5@unixzen.com>2012-03-16 01:31:38 (GMT)
commitb2bcacdef607ffc33f3586422ead811471a2ed98 (patch)
treeac6845da88ac3b4d119587bce948972759a5581f
parent66765679d47689b9420c5a88c0ae1cb8debc9f99 (diff)
3dmov: Convert to current DirectConnected apihrev43864
* Not sure when this older method went away, but nothing uses it anymore. * You now see a book when you launch 3dmov * Still crashy
-rw-r--r--src/apps/3dmov/MainWindow.cpp18
1 files changed, 5 insertions, 13 deletions
diff --git a/src/apps/3dmov/MainWindow.cpp b/src/apps/3dmov/MainWindow.cpp
index b1e9245..c2ace0c 100644
--- a/src/apps/3dmov/MainWindow.cpp
+++ b/src/apps/3dmov/MainWindow.cpp
@@ -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);
}
}