Ticket #2988: appserver-wim.patch

File appserver-wim.patch, 779 bytes (added by Wim, 9 years ago)

Patch that hides the cursor before calling DrawingEngine::ReadBitmap()

  • src/servers/app/ServerApp.cpp

     
    28262826
    28272827            ServerBitmap* bitmap = GetBitmap(token);
    28282828            if (bitmap != NULL) {
     2829                bool cursorIsVisible =
     2830                    fDesktop->HWInterface()->IsCursorVisible();
     2831                fDesktop->HWInterface()->SetCursorVisible(drawCursor);
    28292832                if (fDesktop->GetDrawingEngine()->ReadBitmap(bitmap,
    28302833                        drawCursor, bounds) == B_OK) {
    28312834                    fLink.StartMessage(B_OK);
     
    28332836                    fLink.StartMessage(B_BAD_VALUE);
    28342837
    28352838                bitmap->ReleaseReference();
     2839                fDesktop->HWInterface()->SetCursorVisible(cursorIsVisible);
    28362840            } else
    28372841                fLink.StartMessage(B_BAD_VALUE);
    28382842