Changeset 83307 in vbox
- Timestamp:
- Mar 17, 2020 1:03:59 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 136480
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp
r83306 r83307 1302 1302 void UIFrameBufferPrivate::sltMousePointerShapeChange() 1303 1303 { 1304 /* Do we have view and valid cursor position? 1305 * Also, please take into account, we are not currently painting 1306 * framebuffer cursor if mouse integration is supported and enabled. */ 1304 /* Call for a cursor area update in any case, whether we are drawing it or not: */ 1307 1305 if ( m_pMachineView 1308 && !m_pMachineView->uisession()->isHidingHostPointer() 1309 && m_pMachineView->uisession()->isValidPointerShapePresent() 1310 && m_pMachineView->uisession()->isValidCursorPositionPresent() 1311 && ( !m_pMachineView->uisession()->isMouseIntegrated() 1312 || !m_pMachineView->uisession()->isMouseSupportsAbsolute())) 1313 { 1314 /* Call for a viewport update using known shape rectangle: */ 1306 && m_cursorRectangle.isValid()) 1315 1307 m_pMachineView->viewport()->update(m_cursorRectangle); 1316 }1317 /* Don't forget to clear the rectangle in opposite case: */1318 else if ( m_pMachineView1319 && m_cursorRectangle.isValid())1320 {1321 /* Call for a viewport update: */1322 m_pMachineView->viewport()->update(m_cursorRectangle);1323 /* And erase the rectangle after all: */1324 m_cursorRectangle = QRect();1325 }1326 1308 } 1327 1309 … … 1373 1355 && m_cursorRectangle.isValid()) 1374 1356 { 1375 /* Call for a viewportupdate: */1357 /* Call for a cursor area update: */ 1376 1358 m_pMachineView->viewport()->update(m_cursorRectangle); 1377 /* And erase the rectangle after all: */1378 m_cursorRectangle = QRect();1379 1359 } 1380 1360 }
Note:
See TracChangeset
for help on using the changeset viewer.