Changeset 4970 for trunk/src


Ignore:
Timestamp:
Jan 19, 2001, 3:06:55 AM (25 years ago)
Author:
mike
Message:

Several fixes to make FS DDRAW build again

Location:
trunk/src/ddraw/new
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ddraw/new/OS2DDRAW.CPP

    r3345 r4970  
    1 /* $Id: OS2DDRAW.CPP,v 1.1 2000-04-07 18:21:04 mike Exp $ */
     1/* $Id: OS2DDRAW.CPP,v 1.2 2001-01-19 02:06:55 mike Exp $ */
    22
    33/*
     
    16051605  {
    16061606      SetWindowPos(me->hwndClient, HWND_TOP,0,0,dwWidth,dwHeight,0);
    1607 //    SetWindowPos(me->hwndClient, HWND_TOP, 0, 0, 1024, 768, 0);
     1607      SetCursorPos(dwWidth / 2, dwHeight / 2);
    16081608
    16091609    if ((me->bPMILoaded) && (ModeInSVGAModeTable(dwWidth,dwHeight,dwBPP)))
  • trunk/src/ddraw/new/ddraw.CPP

    r3345 r4970  
    1 /* $Id: ddraw.CPP,v 1.1 2000-04-07 18:21:11 mike Exp $ */
     1/* $Id: ddraw.CPP,v 1.2 2001-01-19 02:06:55 mike Exp $ */
    22
    33/*
    44 * DXDraw DLL implementaion
    55 *
    6  * Copyright 1998 Sander va Leeuwen
     6 * Copyright 1998 Sander van Leeuwen
    77 * Copyright 1999 Markus Montkowski
     8 *
     9 * WARNING: DirectDrawCreate defaults to ddraw v4 if lpGUID == NULL!!
     10 *
    811 *
    912 * Project Odin Software License can be found in LICENSE.TXT
     
    4649  {
    4750    newdraw->Vtbl.AddRef((IDirectDraw2 *)newdraw);
     51
    4852    rc = newdraw->GetLastError();
    4953    if(rc != DD_OK)
     
    5862  return(rc);
    5963}
     64//******************************************************************************
     65//******************************************************************************
     66HRESULT WIN32API DirectDrawCreateEx(LPGUID lpGUID, LPVOID* lplpDD, REFIID iid, LPUNKNOWN pUnkOuter)
     67{
     68  dprintf(("DirectDrawCreateEx: %x %x %x %x", lpGUID, lplpDD, iid, pUnkOuter));
     69  /* I don't know about what functionality is unique to Ex */
     70  return OS2DirectDrawCreate(lpGUID,(LPDIRECTDRAW*)lplpDD,pUnkOuter);
     71}
     72
    6073//******************************************************************************
    6174typedef BOOL (FAR PASCAL * LPDDENUMCALLBACKA)(GUID FAR *, LPSTR, LPSTR, LPVOID);
  • trunk/src/ddraw/new/ddraw.DEF

    r3345 r4970  
    1 ; $Id: ddraw.DEF,v 1.1 2000-04-07 18:21:11 mike Exp $
     1; $Id: ddraw.DEF,v 1.2 2001-01-19 02:06:55 mike Exp $
    22
    33;
     
    1111IMPORTS
    1212    _GpiEnableYInversion       = PMGPI.723
    13     _GpiQueryDCData            = PMGPI.665
    1413
    1514EXPORTS
     
    1716; D3DParseUnknownCommand          @2
    1817; DDGetAttachedSurfaceLcl         @3
    19  DDHAL32_VidMemFree = _DDHAL32_VidMemFree@4         @4
    20  DDHAL32_VidMemAlloc    = _DDHAL32_VidMemAlloc@4        @5
     18 DDHAL32_VidMemFree = _DDHAL32_VidMemFree@4                     @4
     19 DDHAL32_VidMemAlloc    = _DDHAL32_VidMemAlloc@4                @5
    2120; DDInternalLock            @6
    2221; DDInternalUnlock            @7
    2322; DSoundHelp              @8
    24  DirectDrawCreate       = _OS2DirectDrawCreate@12         @9
     23 DirectDrawCreate         = _OS2DirectDrawCreate@12             @9
    2524; DirectDrawCreateClipper         @10
    26 ; DirectDrawCreateEx            @11
    27  DirectDrawEnumerateA   = _OS2DirectDrawEnumerateA@8      @12
    28  DirectDrawEnumerateExA   = _OS2DirectDrawEnumerateExA@12     @13
     25 DirectDrawCreateEx       = _DirectDrawCreateEx@16              @11
     26 DirectDrawEnumerateA     = _OS2DirectDrawEnumerateA@8          @12
     27 DirectDrawEnumerateExA   = _OS2DirectDrawEnumerateExA@12       @13
    2928; DirectDrawEnumerateExW          @14
    3029; DirectDrawEnumerateW            @15
    31 DllCanUnloadNow   = _DllCanUnloadNow@0                      @16
    32 DllGetClassObject = _DllGetClassObject@12                    @17
     30DllCanUnloadNow   = _DllCanUnloadNow@0                          @16
     31DllGetClassObject = _DllGetClassObject@12                       @17
    3332; GetAliasedVidMem            @18
    3433; GetDDSurfaceLocal           @19
  • trunk/src/ddraw/new/os2fsdd.cpp

    r4326 r4970  
    262262                           NULL);
    263263
     264
    264265   return rc;
    265266}
Note: See TracChangeset for help on using the changeset viewer.