Fixed minor ugliness (only visible on slow systems, such as Qemu): the mouse cursor

was drawn before the background got cleared.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19756 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2007-01-09 23:33:57 +00:00
parent 9481ed48de
commit 2d75f771bf
+5 -4
View File
@@ -362,12 +362,8 @@ Desktop::Init()
// TODO: temporary workaround, fActiveScreen will be removed
fActiveScreen = fVirtualScreen.ScreenAt(0);
SetCursor(NULL);
// this will set the default cursor
fVirtualScreen.HWInterface()->MoveCursorTo(fVirtualScreen.Frame().Width() / 2,
fVirtualScreen.Frame().Height() / 2);
fVirtualScreen.HWInterface()->SetCursorVisible(true);
#if TEST_MODE
gInputManager->AddStream(new InputServerStream);
@@ -393,6 +389,11 @@ Desktop::Init()
gFontManager->AttachUser(fUserID);
SetCursor(NULL);
// this will set the default cursor
fVirtualScreen.HWInterface()->SetCursorVisible(true);
return B_OK;
}