Changeset 21916 for trunk/src/ddraw


Ignore:
Timestamp:
Dec 18, 2011, 10:28:22 PM (14 years ago)
Author:
dmik
Message:

Merge branch gcc-kmk to trunk.

Location:
trunk
Files:
27 deleted
10 edited
26 copied

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1 bin
        2 Makefile.inc
         1env.cmd
         2LocalConfig.kmk
    • Property svn:mergeinfo set to
      /branches/gcc-kmkmergedeligible
  • trunk/src/ddraw/ddmain.cpp

    r21494 r21916  
    7979  dprintf(("DDRAW: DirectDrawEnumerateA\n Callback for DIVE"));
    8080  //call it twice for the DirectDraw & Direct3D classes
    81  if(lpCallback(NULL, "DIVE DirectDraw for OS/2",
    82                 "DirectDraw/2 v0.4", lpContext) == DDENUMRET_CANCEL)
     81 if(lpCallback(NULL, (LPSTR)"DIVE DirectDraw for OS/2",
     82                (LPSTR)"DirectDraw/2 v0.4", lpContext) == DDENUMRET_CANCEL)
    8383  {
    8484    dprintf(("DDRAW: Cancel Callback"));
     
    9191  {
    9292    dprintf(("DDRAW: Callback for 3Dfx Voodoo"));
    93     if(lpCallback((GUID *)&IID_IDirect3D, "3Dfx Voodoo Direct3D/2",
    94       "Direct3D/2 v0.2", lpContext) == DDENUMRET_CANCEL)
     93    if(lpCallback((GUID *)&IID_IDirect3D, (LPSTR)"3Dfx Voodoo Direct3D/2",
     94      (LPSTR)"Direct3D/2 v0.2", lpContext) == DDENUMRET_CANCEL)
    9595    {
    9696      dprintf(("DDRAW: Cancel Callback"));
  • trunk/src/ddraw/ddraw2d.cpp

    r21494 r21916  
    130130
    131131  pdwUnknownData = (DWORD*) malloc (255*sizeof(DWORD));
    132   for(int i= 0 ;i<255;i++)
     132  int i;
     133  for(i= 0 ;i<255;i++)
    133134    pdwUnknownData[i] = 0;
    134135
  • trunk/src/ddraw/ddraw2d.h

    r9560 r21916  
    163163};
    164164
     165#ifdef __GNUC__
     166// abuse the real address instead of NULL to supress GCC warnings
     167// (note that it will not work right if OS2IDirectDraw gets virtual methods etc.)
     168#define OFFSET_D3DVTABLE        (LONG)(&((OS2IDirectDraw *)1)->lpVtbl3D-1)
     169#else
    165170#define OFFSET_D3DVTABLE        (LONG)(&((OS2IDirectDraw *)NULL)->lpVtbl3D)
     171#endif
    166172#define DDraw3D_GetThisPtr(a)   (OS2IDirectDraw *)((ULONG)a-OFFSET_D3DVTABLE)
    167173
  • trunk/src/ddraw/os2fsdd.cpp

    r6646 r21916  
    1515#include <misc.h>
    1616
    17 #include <svgadefs.h>
     17#include "svgadefs.h"
    1818
    1919#include "os2fsdd.h"
     
    5353static ULONG ulTotalModes;
    5454
    55 static bIsInFS = FALSE;
     55static BOOL bIsInFS = FALSE;
    5656
    5757/*
  • trunk/src/ddraw/surface.cpp

    r21494 r21916  
    4444#include "wndproc.h"
    4545
    46 #ifndef __WATCOMC__
     46#ifdef __IBMC__
    4747  #include <builtin.h>
    4848#endif
  • trunk/src/ddraw/surfacehlp.cpp

    r21494 r21916  
    314314  const struct {
    315315    DWORD  mask;
    316     char  *name;
     316    const char  *name;
    317317  } flags[] = {
    318318#define FE(x) { x, #x},
     
    339339  const struct {
    340340    DWORD  mask;
    341     char  *name;
     341    const char  *name;
    342342  } flags[] = {
    343343#define FE(x) { x, #x},
     
    357357  const struct {
    358358    DWORD  mask;
    359     char  *name;
     359    const char  *name;
    360360  } flags[] = {
    361361#define FE(x) { x, #x},
     
    397397  const struct {
    398398    DWORD  mask;
    399     char  *name;
     399    const char  *name;
    400400  } flags[] = {
    401401#define FE(x) { x, #x},
     
    441441  const struct {
    442442    DWORD  mask;
    443     char  *name;
     443    const char  *name;
    444444  } flags[] = {
    445445#define FE(x) { x, #x},
     
    462462  const struct {
    463463    DWORD  mask;
    464     char  *name;
     464    const char  *name;
    465465  } flags[] = {
    466466    FE(DDSD_CAPS)
     
    492492  const struct {
    493493    DWORD  mask;
    494     char  *name;
     494    const char  *name;
    495495  } flags[] = {
    496496#define FE(x) { x, #x},
     
    511511  const struct {
    512512    DWORD  mask;
    513     char  *name;
     513    const char  *name;
    514514  } flags[] = {
    515515#define FE(x) { x, #x},
  • trunk/src/ddraw/surfblit.cpp

    r21494 r21916  
    4646#include "divewrap.h"
    4747
    48 #ifndef __WATCOMC__
     48#ifdef __IBMC__
    4949  #include <builtin.h>
    5050#endif
  • trunk/src/ddraw/surfoverlay.cpp

    r21494 r21916  
    4545#include "wndproc.h"
    4646
    47 #ifndef __WATCOMC__
     47#ifdef __IBMC__
    4848  #include <builtin.h>
    4949#endif
  • trunk/src/ddraw/wndproc.c

    r9459 r21916  
    107107                           "WINE_DDRAW", "DirectDraw",
    108108                           WS_POPUP, 0, 0, dwWidth, dwHeight,
    109                            GetDesktopWindow(), 0, 0, hwndOwner);
     109                           GetDesktopWindow(), 0, 0, (LPVOID)hwndOwner);
    110110
    111111    SetWindowPos(hwnd, HWND_TOP, 0, 0, 0, 0,
Note: See TracChangeset for help on using the changeset viewer.