VirtualBox

Ignore:
Timestamp:
Jul 3, 2007 9:06:46 AM (17 years ago)
Author:
vboxsync
Message:

More capability settings added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/dd.c

    r3375 r3377  
    5959    /* Setup the HAL driver caps. */
    6060    memset(pHalInfo, 0, sizeof(DD_HALINFO));
    61     pHalInfo->dwSize = sizeof(DD_HALINFO);
     61    pHalInfo->dwSize    = sizeof(DD_HALINFO);
     62    pHalInfo->dwFlags   = 0;
    6263
    6364    if (!(pvmList && pdwFourCC))
     
    8384        pHalInfo->vmiData.dwZBufferAlign            = 4;
    8485        pHalInfo->vmiData.dwTextureAlign            = 4;
     86    }
     87    pHalInfo->ddCaps.dwSize         = sizeof(DDNTCORECAPS);
     88    pHalInfo->ddCaps.dwVidMemTotal  = pDev->cScreenSize;
     89    pHalInfo->ddCaps.dwVidMemFree   = pDev->cScreenSize;
    8590
    86         pHalInfo->ddCaps.dwVidMemTotal = pDev->cScreenSize;
    87     }
     91    pHalInfo->ddCaps.dwCaps         = DDCAPS_NOHARDWARE; /* ??? */
     92    pHalInfo->ddCaps.dwCaps2        = DDCAPS2_CERTIFIED;
     93
     94    pHalInfo->ddCaps.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE | DDSCAPS_VIDEOMEMORY;
    8895
    8996#if 0
     
    140147    DDHAL_CB32_CANCREATESURFACE | DDHAL_CB32_CREATESURFACE | DDHAL_CB32_WAITFORVERTICALBLANK | DDHAL_CB32_MAPMEMORY | DDHAL_CB32_GETSCANLINE
    141148    */
     149    /* Note: pCallBacks->SetMode & pCallBacks->DestroyDriver are unused in Windows 2000 and up */
    142150
    143151    // Fill in the Surface Callback pointers
     
    158166//    pSurfaceCallBacks.dwFlags |= DDHAL_SURFCB32_SETCOLORKEY;
    159167
     168    memset(&pPaletteCallBacks, 0, sizeof(DD_PALETTECALLBACKS));
     169    pPaletteCallBacks->dwSize           = sizeof(DD_PALETTECALLBACKS);
     170    pPaletteCallBacks->dwFlags          = 0;
    160171
    161172    return TRUE;
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