VirtualBox

Changeset 35304 in vbox


Ignore:
Timestamp:
Dec 22, 2010 3:43:32 PM (14 years ago)
Author:
vboxsync
Message:

Main/Display, VBoxTray: removed obsolete code.

Location:
trunk/src/VBox
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/Makefile.kmk

    r34080 r35304  
    2525endif
    2626VBoxTray_DEFS     = VBOX_WITH_HGCM LOG_TO_BACKDOOR
    27 #temporary define
    28 VBoxTray_DEFS    += MMSEAMLESS
    2927VBoxTray_INCS     = ../include
    3028VBoxTray_SOURCES  = \
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxSeamless.cpp

    r33966 r35304  
    4242    HDC     hdc;
    4343    HRGN    hrgn;
    44 #ifndef MMSEAMLESS
    45     RECT    rect;
    46 #endif
    4744} VBOX_ENUM_PARAM, *PVBOX_ENUM_PARAM;
    4845
     
    155152    Log(("VBoxTray: VBoxEnumFunc %x\n", hwnd));
    156153    /* Only visible windows that are present on the desktop are interesting here */
    157 #ifndef MMSEAMLESS
    158     if (    GetWindowRect(hwnd, &rectWindow)
    159         &&  IntersectRect(&rectVisible, &lpParam->rect, &rectWindow))
    160     {
    161 #else
    162154    if (GetWindowRect(hwnd, &rectWindow))
    163155    {
    164156        rectVisible = rectWindow;
    165 #endif
     157
    166158        char szWindowText[256];
    167159        szWindowText[0] = 0;
     
    223215    param.hrgn      = 0;
    224216
    225 #ifndef MMSEAMLESS
    226     GetWindowRect(GetDesktopWindow(), &param.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 #endif
    229217    EnumWindows(VBoxEnumFunc, (LPARAM)&param);
    230218
  • trunk/src/VBox/Main/DisplayImpl.cpp

    r35283 r35304  
    977977}
    978978
    979 #ifdef MMSEAMLESS
    980979static bool displayIntersectRect(RTRECT *prectResult,
    981980                                 const RTRECT *prect1,
     
    11061105    return VERR_NOT_SUPPORTED;
    11071106}
    1108 #endif
    11091107
    11101108typedef struct _VBVADIRTYREGION
  • trunk/src/VBox/Main/Makefile.kmk

    r35284 r35304  
    593593VBoxC_DEFS.win.amd64 += _WIN32_WINNT=0x0510
    594594
    595 #temporary define
    596 VBoxC_DEFS += MMSEAMLESS
    597 
    598595VBoxC_INCS          = \
    599596        include \
  • trunk/src/VBox/Main/VMMDevInterface.cpp

    r33758 r35304  
    466466    if (!cRect)
    467467        return VERR_INVALID_PARAMETER;
    468 #ifdef MMSEAMLESS
     468
    469469    /* Forward to Display, which calls corresponding framebuffers. */
    470470    pConsole->getDisplay()->handleSetVisibleRegion(cRect, pRect);
    471 #else
    472     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 #endif
    497     }
    498 #endif
    499471
    500472    return VINF_SUCCESS;
     
    506478    Console *pConsole = pDrv->pVMMDev->getParent();
    507479
    508 #ifdef MMSEAMLESS
    509480    /* Forward to Display, which calls corresponding framebuffers. */
    510481    pConsole->getDisplay()->handleQueryVisibleRegion(pcRect, pRect);
    511 #else
    512     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 #endif
    521482
    522483    return VINF_SUCCESS;
  • trunk/src/VBox/Main/include/DisplayImpl.h

    r35177 r35304  
    145145    void getFramebufferDimensions(int32_t *px1, int32_t *py1, int32_t *px2,
    146146                                  int32_t *py2);
    147 #ifdef MMSEAMLESS
     147
    148148    int handleSetVisibleRegion(uint32_t cRect, PRTRECT pRect);
    149149    int handleQueryVisibleRegion(uint32_t *pcRect, PRTRECT pRect);
    150 #endif
    151150
    152151    int VideoAccelEnable (bool fEnable, VBVAMEMORY *pVbvaMemory);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette