VirtualBox

Changeset 83305 in vbox


Ignore:
Timestamp:
Mar 17, 2020 12:26:16 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
136478
Message:

VMSVGA: Explicitly turn cursor on and off when enabling/disabling VMSVGA. Fix AND mask alignment when converting non-alpha cursors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp

    r83278 r83305  
    16961696                for (uint32_t idScreen = 0; idScreen < pThis->cMonitors; ++idScreen)
    16971697                    pThisCC->pDrv->pfnVBVAEnable(pThisCC->pDrv, idScreen, NULL /*pHostFlags*/);
     1698
     1699                /* Make the cursor visible again as needed. */
     1700                if (pSVGAState->Cursor.fActive)
     1701                    pThisCC->pDrv->pfnVBVAMousePointerShape(pThisCC->pDrv, true /*fVisible*/, false, 0, 0, 0, 0, NULL);
    16981702            }
    16991703            else
    17001704            {
     1705                /* Make sure the cursor is off. */
     1706                if (pSVGAState->Cursor.fActive)
     1707                    pThisCC->pDrv->pfnVBVAMousePointerShape(pThisCC->pDrv, false /*fVisible*/, false, 0, 0, 0, 0, NULL);
     1708
    17011709                /* Restore the text mode backup. */
    17021710                memcpy(pThisCC->pbVRam, pThisCC->svga.pbVgaFrameBufferR3, VMSVGA_VGA_FB_BACKUP_SIZE);
     
    29082916
    29092917    /* Convert the XOR mask. */
    2910     uint32_t *pu32Dst = (uint32_t *)(pbCopy + cbDstAndMask);
     2918    uint32_t *pu32Dst = (uint32_t *)(pbCopy + RT_ALIGN_32(cbDstAndMask, 4));
    29112919    pbSrc  = pbSrcXorMask;
    29122920    switch (pCursor->xorMaskDepth)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette