Changeset 27208 in vbox for trunk/src/VBox/Main
- Timestamp:
- Mar 9, 2010 12:31:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MouseImpl.cpp
r27189 r27208 403 403 if (FAILED(rc)) return rc; 404 404 405 *pcX = displayWidth ? ( x* 0xFFFF) / displayWidth: 0;405 *pcX = displayWidth ? ((x - 1) * 0xFFFF) / displayWidth: 0; 406 406 return S_OK; 407 407 } … … 422 422 if (FAILED(rc)) return rc; 423 423 424 *pcY = displayHeight ? ( y* 0xFFFF) / displayHeight: 0;424 *pcY = displayHeight ? ((y - 1) * 0xFFFF) / displayHeight: 0; 425 425 return S_OK; 426 426 } … … 449 449 450 450 uint32_t mouseXAbs; 451 /** @todo the front end should do this conversion to avoid races */ 451 452 HRESULT rc = convertDisplayWidth(x, &mouseXAbs); 452 453 if (FAILED(rc)) return rc; … … 594 595 { 595 596 AutoWriteLock mouseLock(pData->pMouse COMMA_LOCKVAL_SRC_POS); 596 RT_ZERO(pData->pMouse->mpDrv); 597 for (unsigned cDev = 0; cDev < MOUSE_MAX_DEVICES; ++cDev) 598 if (pData->pMouse->mpDrv[cDev] == pData) 599 { 600 pData->pMouse->mpDrv[cDev] = NULL; 601 break; 602 } 597 603 } 598 604 }
Note:
See TracChangeset
for help on using the changeset viewer.