Changeset 35304 in vbox
- Timestamp:
- Dec 22, 2010 3:43:32 PM (14 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/Makefile.kmk
r34080 r35304 25 25 endif 26 26 VBoxTray_DEFS = VBOX_WITH_HGCM LOG_TO_BACKDOOR 27 #temporary define28 VBoxTray_DEFS += MMSEAMLESS29 27 VBoxTray_INCS = ../include 30 28 VBoxTray_SOURCES = \ -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxSeamless.cpp
r33966 r35304 42 42 HDC hdc; 43 43 HRGN hrgn; 44 #ifndef MMSEAMLESS45 RECT rect;46 #endif47 44 } VBOX_ENUM_PARAM, *PVBOX_ENUM_PARAM; 48 45 … … 155 152 Log(("VBoxTray: VBoxEnumFunc %x\n", hwnd)); 156 153 /* Only visible windows that are present on the desktop are interesting here */ 157 #ifndef MMSEAMLESS158 if ( GetWindowRect(hwnd, &rectWindow)159 && IntersectRect(&rectVisible, &lpParam->rect, &rectWindow))160 {161 #else162 154 if (GetWindowRect(hwnd, &rectWindow)) 163 155 { 164 156 rectVisible = rectWindow; 165 #endif 157 166 158 char szWindowText[256]; 167 159 szWindowText[0] = 0; … … 223 215 param.hrgn = 0; 224 216 225 #ifndef MMSEAMLESS226 GetWindowRect(GetDesktopWindow(), ¶m.rect);227 Log(("VBoxTray: VBoxRecheckVisibleWindows desktop=%x rect (%d,%d) (%d,%d)\n", GetDesktopWindow(), param.rect.left, param.rect.top, param.rect.right, param.rect.bottom));228 #endif229 217 EnumWindows(VBoxEnumFunc, (LPARAM)¶m); 230 218 -
trunk/src/VBox/Main/DisplayImpl.cpp
r35283 r35304 977 977 } 978 978 979 #ifdef MMSEAMLESS980 979 static bool displayIntersectRect(RTRECT *prectResult, 981 980 const RTRECT *prect1, … … 1106 1105 return VERR_NOT_SUPPORTED; 1107 1106 } 1108 #endif1109 1107 1110 1108 typedef struct _VBVADIRTYREGION -
trunk/src/VBox/Main/Makefile.kmk
r35284 r35304 593 593 VBoxC_DEFS.win.amd64 += _WIN32_WINNT=0x0510 594 594 595 #temporary define596 VBoxC_DEFS += MMSEAMLESS597 598 595 VBoxC_INCS = \ 599 596 include \ -
trunk/src/VBox/Main/VMMDevInterface.cpp
r33758 r35304 466 466 if (!cRect) 467 467 return VERR_INVALID_PARAMETER; 468 #ifdef MMSEAMLESS 468 469 469 /* Forward to Display, which calls corresponding framebuffers. */ 470 470 pConsole->getDisplay()->handleSetVisibleRegion(cRect, pRect); 471 #else472 IFramebuffer *framebuffer = pConsole->getDisplay()->getFramebuffer();473 if (framebuffer)474 {475 framebuffer->SetVisibleRegion((BYTE *)pRect, cRect);476 #if defined(RT_OS_DARWIN) && defined(VBOX_WITH_HGCM) && defined(VBOX_WITH_CROGL)477 {478 BOOL is3denabled;479 480 pConsole->machine()->COMGETTER(Accelerate3DEnabled)(&is3denabled);481 482 if (is3denabled)483 {484 VBOXHGCMSVCPARM parms[2];485 486 parms[0].type = VBOX_HGCM_SVC_PARM_PTR;487 parms[0].u.pointer.addr = pRect;488 parms[0].u.pointer.size = 0; /* We don't actually care. */489 parms[1].type = VBOX_HGCM_SVC_PARM_32BIT;490 parms[1].u.uint32 = cRect;491 492 if (pDrv->pVMMDev)493 return pDrv->pVMMDev->hgcmHostCall("VBoxSharedCrOpenGL", SHCRGL_HOST_FN_SET_VISIBLE_REGION, 2, &parms[0]);494 }495 }496 #endif497 }498 #endif499 471 500 472 return VINF_SUCCESS; … … 506 478 Console *pConsole = pDrv->pVMMDev->getParent(); 507 479 508 #ifdef MMSEAMLESS509 480 /* Forward to Display, which calls corresponding framebuffers. */ 510 481 pConsole->getDisplay()->handleQueryVisibleRegion(pcRect, pRect); 511 #else512 IFramebuffer *framebuffer = pConsole->getDisplay()->getFramebuffer();513 if (framebuffer)514 {515 ULONG cRect = 0;516 framebuffer->GetVisibleRegion((BYTE *)pRect, cRect, &cRect);517 518 *pcRect = cRect;519 }520 #endif521 482 522 483 return VINF_SUCCESS; -
trunk/src/VBox/Main/include/DisplayImpl.h
r35177 r35304 145 145 void getFramebufferDimensions(int32_t *px1, int32_t *py1, int32_t *px2, 146 146 int32_t *py2); 147 #ifdef MMSEAMLESS 147 148 148 int handleSetVisibleRegion(uint32_t cRect, PRTRECT pRect); 149 149 int handleQueryVisibleRegion(uint32_t *pcRect, PRTRECT pRect); 150 #endif151 150 152 151 int VideoAccelEnable (bool fEnable, VBVAMEMORY *pVbvaMemory);
Note:
See TracChangeset
for help on using the changeset viewer.