VirtualBox

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


Ignore:
Timestamp:
Jul 3, 2007 9:21:40 AM (18 years ago)
Author:
vboxsync
Message:

DDraw: update

File:
1 edited

Legend:

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

    r3377 r3378  
    1515#include "driver.h"
    1616#include "dd.h"
     17
     18#if 0
     19static DWORD APIENTRY DdCreateSurface(PDD_CREATESURFACEDATA  lpCreateSurface);
     20#endif
    1721
    1822/**
     
    140144
    141145    /*
     146    pCallBacks->dwFlags               = DDHAL_CB32_CREATESURFACE;
     147    pCallBacks->CreateSurface         = DdCreateSurface;
    142148    pCallBacks->CanCreateSurface      = DdCanCreateSurface;
    143     pCallBacks->CreateSurface         = DdCreateSurface;
    144149    pCallBacks->WaitForVerticalBlank  = DdWaitForVerticalBlank;
    145150    pCallBacks->GetScanLine           = DdGetScanLine;
    146151    pCallBacks->MapMemory             = DdMapMemory;
    147     DDHAL_CB32_CANCREATESURFACE | DDHAL_CB32_CREATESURFACE | DDHAL_CB32_WAITFORVERTICALBLANK | DDHAL_CB32_MAPMEMORY | DDHAL_CB32_GETSCANLINE
     152    DDHAL_CB32_CANCREATESURFACE | DDHAL_CB32_WAITFORVERTICALBLANK | DDHAL_CB32_MAPMEMORY | DDHAL_CB32_GETSCANLINE
    148153    */
    149154    /* Note: pCallBacks->SetMode & pCallBacks->DestroyDriver are unused in Windows 2000 and up */
     
    153158    pSurfaceCallBacks->dwSize           = sizeof(DD_SURFACECALLBACKS);
    154159    pSurfaceCallBacks->dwFlags          = 0;
     160
    155161    /*
     162    pSurfaceCallBacks->dwFlags          = DDHAL_SURFCB32_DESTROYSURFACE | DDHAL_SURFCB32_LOCK;
    156163    pSurfaceCallBacks->DestroySurface   = DdDestroySurface;
     164    pSurfaceCallBacks->Lock             = DdLock;
    157165    pSurfaceCallBacks->Flip             = DdFlip;
    158     pSurfaceCallBacks->Lock             = DdLock;
    159166    pSurfaceCallBacks->GetBltStatus     = DdGetBltStatus;
    160167    pSurfaceCallBacks->GetFlipStatus    = DdGetFlipStatus;
    161168    pSurfaceCallBacks->Blt              = DdBlt;
    162     DDHAL_SURFCB32_DESTROYSURFACE | DDHAL_SURFCB32_FLIP | DDHAL_SURFCB32_BLT | DDHAL_SURFCB32_GETBLTSTATUS | DDHAL_SURFCB32_GETFLIPSTATUS DDHAL_SURFCB32_LOCK;
     169    DDHAL_SURFCB32_FLIP | DDHAL_SURFCB32_BLT | DDHAL_SURFCB32_GETBLTSTATUS | DDHAL_SURFCB32_GETFLIPSTATUS;
    163170    */
    164171
     
    190197
    191198
    192 
     199#if 0
     200/**
     201 * DdCreateSurface
     202 *
     203 * The DdCreateSurface callback function creates a DirectDraw surface.
     204 *
     205 * lpCreateSurface
     206 *     Points to a DD_CREATESURFACEDATA structure that contains the information required to create a surface.
     207 *
     208 * Return Value
     209 *
     210 * DdCreateSurface returns one of the following callback codes:
     211 * DDHAL_DRIVER_HANDLED
     212 * DDHAL_DRIVER_NOTHANDLED
     213 *
     214 */
     215static DWORD APIENTRY DdCreateSurface(PDD_CREATESURFACEDATA  lpCreateSurface)
     216{
     217    lpCreateSurface->lpDD->fpVidMem = DDHAL_PLEASEALLOC_USERMEM;
     218
     219    return DDHAL_DRIVER_NOTHANDLED;
     220}
     221#endif
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