VirtualBox

Changeset 24940 in vbox for trunk/src


Ignore:
Timestamp:
Nov 25, 2009 11:12:12 AM (15 years ago)
Author:
vboxsync
Message:

DevVGA_VBVA: save mouse pointer shape data only if shape is present.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp

    r24926 r24940  
    610610    pCtx->mouseShapeInfo.fVisible = fVisible;
    611611    pCtx->mouseShapeInfo.fAlpha = fAlpha;
    612     pCtx->mouseShapeInfo.u32HotX = pShape->u32HotX;
    613     pCtx->mouseShapeInfo.u32HotY = pShape->u32HotY;
    614     pCtx->mouseShapeInfo.u32Width = pShape->u32Width;
    615     pCtx->mouseShapeInfo.u32Height = pShape->u32Height;
    616612    if (fShape)
    617613    {
     614        /* Data related to shape. */
     615        pCtx->mouseShapeInfo.u32HotX = pShape->u32HotX;
     616        pCtx->mouseShapeInfo.u32HotY = pShape->u32HotY;
     617        pCtx->mouseShapeInfo.u32Width = pShape->u32Width;
     618        pCtx->mouseShapeInfo.u32Height = pShape->u32Height;
     619
    618620        /* Reallocate memory buffer if necessary. */
    619621        if (cbPointerData > pCtx->mouseShapeInfo.cbAllocated)
Note: See TracChangeset for help on using the changeset viewer.

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