addapted it to use the new desktop management code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6052 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -180,7 +180,7 @@ void CursorManager::ShowCursor(void)
|
|||||||
// TODO: Fix
|
// TODO: Fix
|
||||||
/* Lock();
|
/* Lock();
|
||||||
|
|
||||||
DisplayDriver *driver=GetGfxDriver(ActiveScreen());
|
DisplayDriver *driver = desktop->CursorScreen()->DDriver();
|
||||||
driver->ShowCursor();
|
driver->ShowCursor();
|
||||||
Unlock();
|
Unlock();
|
||||||
*/
|
*/
|
||||||
@@ -192,7 +192,7 @@ void CursorManager::HideCursor(void)
|
|||||||
// TODO: Fix
|
// TODO: Fix
|
||||||
/* Lock();
|
/* Lock();
|
||||||
|
|
||||||
DisplayDriver *driver=GetGfxDriver(ActiveScreen());
|
DisplayDriver *driver = desktop->CursorScreen()->DDriver();
|
||||||
driver->HideCursor();
|
driver->HideCursor();
|
||||||
Unlock();
|
Unlock();
|
||||||
*/
|
*/
|
||||||
@@ -204,7 +204,7 @@ void CursorManager::ObscureCursor(void)
|
|||||||
// TODO: Fix
|
// TODO: Fix
|
||||||
/* Lock();
|
/* Lock();
|
||||||
|
|
||||||
DisplayDriver *driver=GetGfxDriver(ActiveScreen());
|
DisplayDriver *driver = desktop->CursorScreen()->DDriver();
|
||||||
driver->ObscureCursor();
|
driver->ObscureCursor();
|
||||||
Unlock();
|
Unlock();
|
||||||
*/
|
*/
|
||||||
@@ -221,7 +221,7 @@ void CursorManager::SetCursor(int32 token)
|
|||||||
ServerCursor *c=_FindCursor(token);
|
ServerCursor *c=_FindCursor(token);
|
||||||
if(c)
|
if(c)
|
||||||
{
|
{
|
||||||
DisplayDriver *driver=GetGfxDriver(ActiveScreen());
|
DisplayDriver *driver = desktop->CursorScreen()->DDriver();
|
||||||
driver->SetCursor(c);
|
driver->SetCursor(c);
|
||||||
_current_which=B_CURSOR_OTHER;
|
_current_which=B_CURSOR_OTHER;
|
||||||
}
|
}
|
||||||
@@ -234,7 +234,7 @@ void CursorManager::SetCursor(cursor_which which)
|
|||||||
// TODO: Fix
|
// TODO: Fix
|
||||||
/* Lock();
|
/* Lock();
|
||||||
|
|
||||||
DisplayDriver *driver=GetGfxDriver(ActiveScreen());
|
DisplayDriver *driver = desktop->CursorScreen()->DDriver();
|
||||||
switch(which)
|
switch(which)
|
||||||
{
|
{
|
||||||
case B_CURSOR_DEFAULT:
|
case B_CURSOR_DEFAULT:
|
||||||
|
|||||||
Reference in New Issue
Block a user