VirtualBox

Changeset 52922 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 2, 2014 6:50:18 AM (10 years ago)
Author:
vboxsync
Message:

VBoxSDL: update the mouse pointer when starting with a separate VM.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp

    r51677 r52922  
    23932393
    23942394        HandleGuestCapsChanged();
     2395
     2396        ComPtr<IMousePointerShape> mps;
     2397        gpMouse->COMGETTER(PointerShape)(mps.asOutParam());
     2398        if (!mps.isNull())
     2399        {
     2400            BOOL  visible,  alpha;
     2401            ULONG hotX, hotY, width, height;
     2402            com::SafeArray <BYTE> shape;
     2403
     2404            mps->COMGETTER(Visible)(&visible);
     2405            mps->COMGETTER(Alpha)(&alpha);
     2406            mps->COMGETTER(HotX)(&hotX);
     2407            mps->COMGETTER(HotY)(&hotY);
     2408            mps->COMGETTER(Width)(&width);
     2409            mps->COMGETTER(Height)(&height);
     2410            mps->COMGETTER(Shape)(ComSafeArrayAsOutParam(shape));
     2411
     2412            if (shape.size() > 0)
     2413            {
     2414                PointerShapeChangeData data(visible, alpha, hotX, hotY, width, height,
     2415                                            ComSafeArrayAsInParam(shape));
     2416                SetPointerShape(&data);
     2417            }
     2418        }
    23952419    }
    23962420
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