VirtualBox

Changeset 77130 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Feb 1, 2019 4:55:20 PM (6 years ago)
Author:
vboxsync
Message:

pdmifs/DevVGA/DisplayImpl: add screen id to pfnVBVAReportCursorPosition.
bugref:9376: Complete hardware cursor implementation in VMSVGA.
vboxvideo in Linux passes cursor position information relative to a particular
screen, but we loose this information when we pass it on to the front-end.
Since no front-end has used the information yet this was not noticed. This
change fixes that and converts the co-ordinates to frame-buffer global ones
as early as possible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmifs.h

    r76585 r77130  
    715715#endif
    716716
     717/** @name Flags for PDMIDISPLAYCONNECTOR::pfnVBVAReportCursorPosition.
     718 * @{ */
     719/** Is the data in the report valid? */
     720#define VBVA_CURSOR_VALID_DATA                              RT_BIT(0)
     721/** Is the cursor position reported relative to a particular guest screen? */
     722#define VBVA_CURSOR_SCREEN_RELATIVE                         RT_BIT(1)
     723/** @} */
    717724
    718725/** Pointer to a 2D graphics acceleration command. */
     
    10491056     *
    10501057     * @param   pInterface  Pointer to this interface.
    1051      * @param   fData       Does this report contain valid X and Y data or is
    1052      *                      it only reporting interface support?
     1058     * @param   fFlags      VBVA_CURSOR_*
     1059     * @param   uScreenId   The screen to which X and Y are relative if VBVA_CURSOR_SCREEN_RELATIVE is set.
    10531060     * @param   x           Cursor X offset.
    10541061     * @param   y           Cursor Y offset.
    10551062     * @thread  The emulation thread.
    10561063     */
    1057     DECLR3CALLBACKMEMBER(void, pfnVBVAReportCursorPosition,(PPDMIDISPLAYCONNECTOR pInterface, bool fData, uint32_t x, uint32_t y));
     1064    DECLR3CALLBACKMEMBER(void, pfnVBVAReportCursorPosition,(PPDMIDISPLAYCONNECTOR pInterface, uint32_t fFlags, uint32_t uScreen, uint32_t x, uint32_t y));
    10581065} PDMIDISPLAYCONNECTOR;
    10591066/** PDMIDISPLAYCONNECTOR interface ID. */
    1060 #define PDMIDISPLAYCONNECTOR_IID                "e648dac6-c918-11e7-8be6-a317e6b79645"
     1067#define PDMIDISPLAYCONNECTOR_IID                "f2a4c9fc-2613-11e9-bc48-bf934e641fc0"
    10611068
    10621069
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