SetCursor(int32 token) now sets system cursor_which to B_CURSOR_OTHER

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2545 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm
2003-01-24 14:20:44 +00:00
parent 134b30df97
commit 0933894bf7
+10
View File
@@ -186,6 +186,7 @@ void CursorManager::SetCursor(int32 token)
// TODO: enable this when Desktop.h is added to server
// DisplayDriver *driver=GetGfxDriver();
// driver->SetCursor(c);
_current_which=B_CURSOR_OTHER;
}
release_sem(_lock);
}
@@ -201,46 +202,55 @@ void CursorManager::SetCursor(cursor_which which)
case B_CURSOR_DEFAULT:
{
driver->SetCursor(_defaultcsr);
_current_which=which;
break;
}
case B_CURSOR_TEXT:
{
driver->SetCursor(_textcsr);
_current_which=which;
break;
}
case B_CURSOR_MOVE:
{
driver->SetCursor(_movecsr);
_current_which=which;
break;
}
case B_CURSOR_DRAG:
{
driver->SetCursor(_dragcsr);
_current_which=which;
break;
}
case B_CURSOR_RESIZE:
{
driver->SetCursor(_resizecsr);
_current_which=which;
break;
}
case B_CURSOR_RESIZE_NWSE:
{
driver->SetCursor(_resize_nwse_csr);
_current_which=which;
break;
}
case B_CURSOR_RESIZE_NESW:
{
driver->SetCursor(_resize_nesw_csr);
_current_which=which;
break;
}
case B_CURSOR_RESIZE_NS:
{
driver->SetCursor(_resize_ns_csr);
_current_which=which;
break;
}
case B_CURSOR_RESIZE_EW:
{
driver->SetCursor(_resize_ew_csr);
_current_which=which;
break;
}
default: