Delete all Trailing spaces in code.

svn path=/trunk/; revision=29688
This commit is contained in:
Daniel Reimer 2007-10-19 23:01:40 +00:00
parent dd02e006bb
commit 622c29bffb
161 changed files with 1944 additions and 1944 deletions

View file

@ -5,7 +5,7 @@ LPDIRECTDRAW7 DirectDraw;
BOOL TestCaps (char* dummy, DWORD Caps, HRESULT test1, HRESULT test2)
{
LPDIRECTDRAWSURFACE7 Surface = NULL;
DDSURFACEDESC2 Desc = { 0 };
DDSURFACEDESC2 Desc = { 0 };
Desc.dwHeight = 200;
Desc.dwWidth = 200;
Desc.dwSize = sizeof (DDSURFACEDESC2);
@ -27,7 +27,7 @@ BOOL Test_CreateSurface (INT* passed, INT* failed)
{
LPDIRECTDRAWSURFACE7 Surface = NULL;
HWND hwnd;
/* Preparations */
if (DirectDrawCreateEx(NULL, (VOID**)&DirectDraw, IID_IDirectDraw7, NULL) != DD_OK)
{
@ -36,21 +36,21 @@ BOOL Test_CreateSurface (INT* passed, INT* failed)
}
TEST ( DirectDraw->CreateSurface(NULL, NULL, NULL) == DDERR_NOCOOPERATIVELEVELSET);
if(!( hwnd = CreateBasicWindow() ))
{
printf("ERROR: Failed to create window\n");
DirectDraw->Release();
return FALSE;
}
if (DirectDraw->SetCooperativeLevel (hwnd, DDSCL_NORMAL) != DD_OK)
{
printf("ERROR: Could not set cooperative level\n");
DirectDraw->Release();
return 0;
}
/* The Test */
DDSURFACEDESC2 Desc = { 0 };
Desc.dwSize = sizeof (DDSURFACEDESC2);
@ -61,11 +61,11 @@ BOOL Test_CreateSurface (INT* passed, INT* failed)
TEST ( DirectDraw->CreateSurface(NULL, &Surface, NULL) == DDERR_INVALIDPARAMS );
TEST ( DirectDraw->CreateSurface(&Desc, NULL, NULL) == DDERR_INVALIDPARAMS );
TEST ( DirectDraw->CreateSurface(&Desc, &Surface, NULL) == DDERR_INVALIDPARAMS );
// Test (nearly) all possible cap combinations
#include "caps_tests.h"
DirectDraw->Release();
return TRUE;
}