VirtualBox

Changeset 3397 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Jul 3, 2007 4:49:25 PM (18 years ago)
Author:
vboxsync
Message:

Disabled all ddraw features that are not mandatory. Enabled DirectDraw.

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Display
Files:
2 edited

Legend:

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

    r3356 r3397  
    3131VBoxDisp_SDKS        = W2K3DDKX86 WINPSDKINCS
    3232VBoxDisp_SYSSUFF     = .dll
    33 VBoxDisp_DEFS        = _WIN32_WINNT=0x0501 LOG_TO_BACKDOOR
     33VBoxDisp_DEFS        = _WIN32_WINNT=0x0501 LOG_TO_BACKDOOR VBOX_WITH_DDRAW
    3434#VBoxDisp_DEFS        += LOG_ENABLED
    3535#VBoxDisp_DEFS        += STAT_sunlover
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/dd.c

    r3395 r3397  
    121121    pHalInfo->ddCaps.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE;
    122122
     123#if 0 /* not mandatory */
    123124    /* DX5 and up */
    124125    pHalInfo->GetDriverInfo = DdGetDriverInfo;
    125126    pHalInfo->dwFlags |= DDHALINFO_GETDRIVERINFOSET;
     127#endif
    126128
    127129#if 0
     
    168170    /* Fill in the HAL Callback pointers */
    169171    pCallBacks->dwSize                = sizeof(DD_CALLBACKS);
     172    pCallBacks->dwFlags               = 0;
     173
     174    /*
    170175    pCallBacks->dwFlags               = DDHAL_CB32_CREATESURFACE | DDHAL_CB32_CANCREATESURFACE;
    171176    pCallBacks->CreateSurface         = DdCreateSurface;
    172177    pCallBacks->CanCreateSurface      = DdCanCreateSurface;
    173 
    174     /*
    175178    pCallBacks->WaitForVerticalBlank  = DdWaitForVerticalBlank;
    176179    pCallBacks->GetScanLine           = DdGetScanLine;
     
    182185    /* Fill in the Surface Callback pointers */
    183186    pSurfaceCallBacks->dwSize           = sizeof(DD_SURFACECALLBACKS);
     187    pSurfaceCallBacks->dwFlags          = 0;
     188
     189    /*
    184190    pSurfaceCallBacks->dwFlags          = DDHAL_SURFCB32_DESTROYSURFACE | DDHAL_SURFCB32_LOCK; // DDHAL_SURFCB32_UNLOCK;
    185191    pSurfaceCallBacks->DestroySurface   = DdDestroySurface;
    186 //    pSurfaceCallBacks->Lock             = DdLock;
     192    pSurfaceCallBacks->Lock             = DdLock;
    187193    pSurfaceCallBacks->Unlock           = DdUnlock;
    188 
    189     /*
    190194    pSurfaceCallBacks->Flip             = DdFlip;
    191195    pSurfaceCallBacks->GetBltStatus     = DdGetBltStatus;
     
    692696// can boot those allocations out of memory to make room for DirectDraw.
    693697//
    694 // We implement this function in the P2 driver because we have DirectDraw
    695 // entirely manage our off-screen heap, and we use HeapVidMemAllocAligned
    696 // to put GDI device-bitmaps in off-screen memory.  DirectDraw applications
    697 // have a higher priority for getting stuff into video memory, though, and
    698 // so this function is used to boot those GDI surfaces out of memory in
    699 // order to make room for DirectDraw.
    700 //
    701698//-----------------------------------------------------------------------------
    702699
     
    707704
    708705    lpFreeDriverMemory->ddRVal = DDERR_OUTOFMEMORY;
    709     return (DDHAL_DRIVER_HANDLED);
     706    return DDHAL_DRIVER_HANDLED;
    710707}
    711708
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