Changeset 51339 in vbox
- Timestamp:
- May 22, 2014 9:12:47 AM (11 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp
r51203 r51339 954 954 955 955 /* Determine shifting: */ 956 CFramebuffer framebuffer;957 956 LONG xShift = 0, yShift = 0; 958 session().GetConsole().GetDisplay().GetFramebuffer(uScreenId, framebuffer, xShift, yShift); 957 ULONG dummy; 958 session().GetConsole().GetDisplay().GetScreenResolution(uScreenId, dummy, dummy, dummy, xShift, yShift); 959 959 /* Set shifting: */ 960 960 cpnt.setX(cpnt.x() + xShift); … … 1018 1018 QVector<LONG64> contacts(pTouchEvent->touchPoints().size()); 1019 1019 1020 CFramebuffer framebuffer;1021 1020 LONG xShift = 0, yShift = 0; 1022 session().GetConsole().GetDisplay().GetFramebuffer(uScreenId, framebuffer, xShift, yShift); 1021 ULONG dummy; 1022 session().GetConsole().GetDisplay().GetScreenResolution(uScreenId, dummy, dummy, dummy, xShift, yShift); 1023 1023 1024 1024 /* Pass all multi-touch events into guest: */ -
trunk/src/VBox/Main/src-client/GuestDnDImpl.cpp
r51092 r51339 584 584 return hr; 585 585 586 ComPtr<IFramebuffer> pFramebuffer;587 586 LONG xShift, yShift; 588 hr = pDisplay->Get Framebuffer(uScreenId, pFramebuffer.asOutParam(),589 &xShift, &yShift);587 hr = pDisplay->GetScreenResolution(uScreenId, NULL, NULL, NULL, 588 &xShift, &yShift); 590 589 if (FAILED(hr)) 591 590 return hr;
Note:
See TracChangeset
for help on using the changeset viewer.