Changeset 77763 in vbox
- Timestamp:
- Mar 18, 2019 2:46:17 PM (6 years ago)
- 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 1311 1311 if (m_pMachineView && m_fCursorPositionValid) 1312 1312 { 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 1313 1325 /* Acquire cursor position and size: */ 1314 QPoint cursorPosition = QPoint(uX, uY) - m_pMachineView->uisession()->cursorHotspot();1326 QPoint cursorPosition = QPoint(uX, uY) - cursorHotspot; 1315 1327 QSize cursorSize = m_pMachineView->uisession()->cursorSize(); 1316 1328 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r77726 r77763 1623 1623 uint srcShapePtrScan = uWidth * 4; 1624 1624 1625 /* Remember initial cursor hotspot: */ 1626 m_cursorHotspot = QPoint(uXHot, uYHot); 1627 1625 1628 #if defined (VBOX_WS_WIN) 1626 1629 … … 1834 1837 #endif 1835 1838 1836 /* Cache cursor pixmap data: */ 1837 m_cursorHotspot = QPoint(uXHot, uYHot); 1839 /* Cache cursor pixmap size: */ 1838 1840 m_cursorSize = m_cursorPixmap.size(); 1839 1841 }
Note:
See TracChangeset
for help on using the changeset viewer.