VirtualBox

Changeset 77763 in vbox


Ignore:
Timestamp:
Mar 18, 2019 2:46:17 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9376: macOS fix for r129374.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp

    r77726 r77763  
    13111311    if (m_pMachineView && m_fCursorPositionValid)
    13121312    {
     1313        /* Acquire cursor hotspot: */
     1314        QPoint cursorHotspot = m_pMachineView->uisession()->cursorHotspot();
     1315
     1316#ifdef VBOX_WS_MAC
     1317        /* Apply the scale-factor if necessary: */
     1318        cursorHotspot /= scaleFactor();
     1319
     1320        /* Take the device-pixel-ratio into account: */
     1321        if (!useUnscaledHiDPIOutput())
     1322            cursorHotspot /= devicePixelRatioActual();
     1323#endif
     1324
    13131325        /* Acquire cursor position and size: */
    1314         QPoint cursorPosition = QPoint(uX, uY) - m_pMachineView->uisession()->cursorHotspot();
     1326        QPoint cursorPosition = QPoint(uX, uY) - cursorHotspot;
    13151327        QSize cursorSize = m_pMachineView->uisession()->cursorSize();
    13161328
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r77726 r77763  
    16231623    uint srcShapePtrScan = uWidth * 4;
    16241624
     1625    /* Remember initial cursor hotspot: */
     1626    m_cursorHotspot = QPoint(uXHot, uYHot);
     1627
    16251628#if defined (VBOX_WS_WIN)
    16261629
     
    18341837#endif
    18351838
    1836     /* Cache cursor pixmap data: */
    1837     m_cursorHotspot = QPoint(uXHot, uYHot);
     1839    /* Cache cursor pixmap size: */
    18381840    m_cursorSize = m_cursorPixmap.size();
    18391841}
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