Changeset 107412 in vbox
- Timestamp:
- Jan 6, 2025 12:00:49 PM (5 months ago)
- svn:sync-xref-src-repo-rev:
- 166463
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r106556 r107412 586 586 if (comMouse.isNull()) 587 587 return false; 588 comMouse.PutMouseEvent(iDx, iDy, iDz, iDw, iButtonState); 588 comMouse.PutMouseEvent((LONG)iDx, (LONG)iDy, 589 (LONG)iDz, (LONG)iDw, 590 (LONG)iButtonState); 589 591 return comMouse.isOk(); 590 592 } … … 595 597 if (comMouse.isNull()) 596 598 return false; 597 comMouse.PutMouseEventAbsolute(iX, iY, iDz, iDw, iButtonState); 599 comMouse.PutMouseEventAbsolute((LONG)iX, (LONG)iY, 600 (LONG)iDz, (LONG)iDw, 601 (LONG)iButtonState); 598 602 return comMouse.isOk(); 599 603 } … … 604 608 if (comMouse.isNull()) 605 609 return false; 606 comMouse.PutEventMultiTouch( iCount, contacts, fIsTouchScreen,uScanTime);610 comMouse.PutEventMultiTouch((LONG)iCount, contacts, fIsTouchScreen, (ULONG)uScanTime); 607 611 return comMouse.isOk(); 608 612 } … … 783 787 default: break; 784 788 } 785 const longiPort = comAttachment.GetPort();789 const int iPort = comAttachment.GetPort(); 786 790 fSuccess = comAttachment.isOk(); 787 791 if (!fSuccess) … … 790 794 break; 791 795 } 792 const longiDevice = comAttachment.GetDevice();796 const int iDevice = comAttachment.GetDevice(); 793 797 fSuccess = comAttachment.isOk(); 794 798 if (!fSuccess) … … 1252 1256 { 1253 1257 CMachine comMachine = machine(); 1254 CNetworkAdapter comAdapter = comMachine.GetNetworkAdapter( uSlot);1258 CNetworkAdapter comAdapter = comMachine.GetNetworkAdapter((ULONG)uSlot); 1255 1259 bool fSuccess = comMachine.isOk(); 1256 1260 if (!fSuccess) … … 1317 1321 { 1318 1322 CMachine comMachine = machine(); 1319 CNetworkAdapter comAdapter = comMachine.GetNetworkAdapter( uSlot);1323 CNetworkAdapter comAdapter = comMachine.GetNetworkAdapter((ULONG)uSlot); 1320 1324 bool fSuccess = comMachine.isOk(); 1321 1325 if (!fSuccess) … … 1336 1340 { 1337 1341 CMachine comMachine = machine(); 1338 CNetworkAdapter comAdapter = comMachine.GetNetworkAdapter( uSlot);1342 CNetworkAdapter comAdapter = comMachine.GetNetworkAdapter((ULONG)uSlot); 1339 1343 bool fSuccess = comMachine.isOk(); 1340 1344 if (!fSuccess) … … 1641 1645 LONG iGuestXOrigin = 0, iGuestYOrigin = 0; 1642 1646 KGuestMonitorStatus enmGuestMonitorStatus = KGuestMonitorStatus_Disabled; 1643 comDisplay.GetScreenResolution( uScreenId, uGuestWidth, uGuestHeight, uGuestBitsPerPixel,1647 comDisplay.GetScreenResolution((ULONG)uScreenId, uGuestWidth, uGuestHeight, uGuestBitsPerPixel, 1644 1648 iGuestXOrigin, iGuestYOrigin, enmGuestMonitorStatus); 1645 1649 const bool fSuccess = comDisplay.isOk(); … … 1665 1669 ULONG uGuestXOrigin = 0, uGuestYOrigin = 0, uGuestWidth = 0, uGuestHeight = 0; 1666 1670 BOOL fGuestEnabled = FALSE; 1667 comMachine.QuerySavedGuestScreenInfo(uScreenId, uGuestXOrigin, uGuestYOrigin, uGuestWidth, uGuestHeight, fGuestEnabled); 1671 comMachine.QuerySavedGuestScreenInfo((ULONG)uScreenId, uGuestXOrigin, uGuestYOrigin, 1672 uGuestWidth, uGuestHeight, fGuestEnabled); 1668 1673 const bool fSuccess = comMachine.isOk(); 1669 1674 if (!fSuccess) … … 1684 1689 { 1685 1690 CDisplay comDisplay = display(); 1686 comDisplay.SetVideoModeHint(uScreenId, fEnabled, fChangeOrigin, xOrigin, yOrigin, 1687 uWidth, uHeight, uBitsPerPixel, fNotify); 1691 comDisplay.SetVideoModeHint((ULONG)uScreenId, 1692 fEnabled, 1693 fChangeOrigin, 1694 (LONG)xOrigin, (LONG)yOrigin, 1695 (ULONG)uWidth, (ULONG)uHeight, (ULONG)uBitsPerPixel, 1696 fNotify); 1688 1697 const bool fSuccess = comDisplay.isOk(); 1689 1698 if (!fSuccess) … … 1700 1709 LONG iGuestXOrigin = 0, iGuestYOrigin = 0; 1701 1710 ULONG uGuestWidth = 0, uGuestHeight = 0, uGuestBitsPerPixel = 0; 1702 comDisplay.GetVideoModeHint( uScreenId, fGuestEnabled, fGuestChangeOrigin,1711 comDisplay.GetVideoModeHint((ULONG)uScreenId, fGuestEnabled, fGuestChangeOrigin, 1703 1712 iGuestXOrigin, iGuestYOrigin, uGuestWidth, uGuestHeight, 1704 1713 uGuestBitsPerPixel); … … 1727 1736 { 1728 1737 /* Take screen-data to array first: */ 1729 const QVector<BYTE> screenData = comDisplay.TakeScreenShotToArray(uScreenId, uWidth, uHeight, enmFormat); 1738 const QVector<BYTE> screenData = comDisplay.TakeScreenShotToArray((ULONG)uScreenId, 1739 (ULONG)uWidth, 1740 (ULONG)uHeight, 1741 enmFormat); 1730 1742 fSuccess = comDisplay.isOk(); 1731 1743 if (!fSuccess) … … 1742 1754 { 1743 1755 /* Take the screen-shot directly: */ 1744 comDisplay.TakeScreenShot(uScreenId, pBits, uWidth, uHeight, enmFormat); 1756 comDisplay.TakeScreenShot((ULONG)uScreenId, 1757 pBits, 1758 (ULONG)uWidth, 1759 (ULONG)uHeight, 1760 enmFormat); 1745 1761 fSuccess = comDisplay.isOk(); 1746 1762 if (!fSuccess && comDisplay.rc() != VBOX_E_NOT_SUPPORTED) /* VBOX_E_NOT_SUPPORTED: screens size 0x0 can't be snapshotted */ … … 1754 1770 CMachine comMachine = machine(); 1755 1771 ULONG uGuestWidth = 0, uGuestHeight = 0; 1756 QVector<KBitmapFormat> guestFormats = comMachine.QuerySavedScreenshotInfo(uScreenId, uGuestWidth, uGuestHeight); 1772 QVector<KBitmapFormat> guestFormats = comMachine.QuerySavedScreenshotInfo((ULONG)uScreenId, 1773 uGuestWidth, uGuestHeight); 1757 1774 const bool fSuccess = comMachine.isOk(); 1758 1775 if (!fSuccess) … … 1772 1789 CMachine comMachine = machine(); 1773 1790 ULONG uGuestWidth = 0, uGuestHeight = 0; 1774 const QVector<BYTE> guestScreenshot = comMachine.ReadSavedScreenshotToArray( uScreenId, enmFormat,1791 const QVector<BYTE> guestScreenshot = comMachine.ReadSavedScreenshotToArray((ULONG)uScreenId, enmFormat, 1775 1792 uGuestWidth, uGuestHeight); 1776 1793 const bool fSuccess = comMachine.isOk(); … … 1821 1838 if (comDisplay.isNull()) 1822 1839 return false; 1823 comDisplay.ViewportChanged( uScreenId, xOrigin, yOrigin, uWidth,uHeight);1840 comDisplay.ViewportChanged((ULONG)uScreenId, (ULONG)xOrigin, (ULONG)yOrigin, (ULONG)uWidth, (ULONG)uHeight); 1824 1841 const bool fSuccess = comDisplay.isOk(); 1825 1842 if (!fSuccess) … … 1841 1858 { 1842 1859 CDisplay comDisplay = display(); 1843 comDisplay.InvalidateAndUpdateScreen( uScreenId);1860 comDisplay.InvalidateAndUpdateScreen((ULONG)uScreenId); 1844 1861 const bool fSuccess = comDisplay.isOk(); 1845 1862 if (!fSuccess) … … 2326 2343 { 2327 2344 const QRect rct = activeMachineWindow()->frameGeometry(); 2328 m_pDbgGuiVT->pfnAdjustRelativePos(m_pDbgGui, rct.x(), rct.y(), rct.width(),rct.height());2345 m_pDbgGuiVT->pfnAdjustRelativePos(m_pDbgGui, rct.x(), rct.y(), (uint)rct.width(), (uint)rct.height()); 2329 2346 } 2330 2347 } … … 2637 2654 ulong cGuestScreenCount = 0; 2638 2655 acquireMonitorCount(cGuestScreenCount); 2639 m_frameBufferVector.resize( cGuestScreenCount);2656 m_frameBufferVector.resize((int)cGuestScreenCount); 2640 2657 2641 2658 /* Create new frame-buffers: */ … … 2765 2782 CPlatform comPlatform = machine().GetPlatform(); 2766 2783 CPlatformProperties comProperties = gpGlobalSession->virtualBox().GetPlatformProperties(comPlatform.GetArchitecture()); 2767 const ulongcCount = comProperties.GetMaxNetworkAdapters(comPlatform.GetChipsetType());2768 for ( ulonguAdapterIndex = 0; uAdapterIndex < cCount; ++uAdapterIndex)2784 const ULONG cCount = comProperties.GetMaxNetworkAdapters(comPlatform.GetChipsetType()); 2785 for (ULONG uAdapterIndex = 0; uAdapterIndex < cCount; ++uAdapterIndex) 2769 2786 { 2770 2787 CNetworkAdapter comNetworkAdapter = machine().GetNetworkAdapter(uAdapterIndex);
Note:
See TracChangeset
for help on using the changeset viewer.