From 9c06e46d6a45fa43a77f5f65124eb80e51ef54d0 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Sat, 30 Apr 2005 05:45:49 +0000 Subject: [PATCH] fDriver wasn't apparently used anymore. Thanks Jerome. BTW we should remove it if it's useless git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12514 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/AppServer.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/servers/app/AppServer.cpp b/src/servers/app/AppServer.cpp index 92bfe00a48..3031e8be92 100644 --- a/src/servers/app/AppServer.cpp +++ b/src/servers/app/AppServer.cpp @@ -405,7 +405,6 @@ void AppServer::MainLoop(void) case B_QUIT_REQUESTED: case AS_CREATE_APP: case AS_DELETE_APP: - //case AS_GET_SCREEN_MODE: // TODO: Leftover case AS_SCREEN_GET_MODE: case AS_SCREEN_SET_MODE: case AS_UPDATED_CLIENT_FONTLIST: @@ -749,13 +748,15 @@ void AppServer::DispatchMessage(int32 code, BPortLink &msg) msg.Read(&id); uint32 workspace; msg.Read(&workspace); + // TODO: the display_mode can be different between - // the various workspaces. + // the various screens. // We have the screen_id and the workspace number, with these // we need to find the corresponding "driver", and call getmode on it - display_mode mode; - fDriver->GetMode(&mode); + desktop->GetDisplayDriver()->GetMode(&mode); + // actually this isn't still enough as different workspaces can + // have different display_modes BPortLink replylink(replyport); replylink.StartMessage(AS_SCREEN_GET_MODE);