mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 07:16:18 +00:00
Delete all Trailing spaces in code.
svn path=/trunk/; revision=29688
This commit is contained in:
parent
dd02e006bb
commit
622c29bffb
161 changed files with 1944 additions and 1944 deletions
|
@ -254,7 +254,7 @@ BOOL Test_GetAvailableVidMem (INT* passed, INT* failed)
|
|||
memset(&Caps,0,sizeof(DDSCAPS2));
|
||||
Caps.dwCaps3 = ~(DDSCAPS3_MULTISAMPLE_QUALITY_MASK | DDSCAPS3_MULTISAMPLE_MASK | DDSCAPS3_RESERVED1 | DDSCAPS3_RESERVED2 | DDSCAPS3_LIGHTWEIGHTMIPMAP | DDSCAPS3_AUTOGENMIPMAP | DDSCAPS3_DMAP);
|
||||
TEST (DirectDraw->GetAvailableVidMem(&Caps, &Total, &Free) == DDERR_INVALIDCAPS);
|
||||
|
||||
|
||||
memset(&Caps,0,sizeof(DDSCAPS2));
|
||||
Caps.dwCaps3 = (DDSCAPS3_MULTISAMPLE_QUALITY_MASK | DDSCAPS3_MULTISAMPLE_MASK | DDSCAPS3_RESERVED1 | DDSCAPS3_RESERVED2 | DDSCAPS3_LIGHTWEIGHTMIPMAP | DDSCAPS3_AUTOGENMIPMAP | DDSCAPS3_DMAP);
|
||||
TEST (DirectDraw->GetAvailableVidMem(&Caps, &Total, &Free) == DD_OK);
|
||||
|
|
|
@ -12,7 +12,7 @@ BOOL Test_CreateDDraw (INT* passed, INT* failed)
|
|||
|
||||
TEST (DirectDrawCreateEx(NULL, (VOID**)&DirectDraw, IID_IDirectDraw7, (IUnknown*)0xdeadbeef) == CLASS_E_NOAGGREGATION);
|
||||
TEST (DirectDrawCreateEx(NULL, (VOID**)&DirectDraw, IID_IDirectDraw4, NULL) == DDERR_INVALIDPARAMS);
|
||||
TEST (DirectDrawCreateEx(NULL, NULL, IID_IDirectDraw7, NULL) == DDERR_INVALIDPARAMS);
|
||||
TEST (DirectDrawCreateEx(NULL, NULL, IID_IDirectDraw7, NULL) == DDERR_INVALIDPARAMS);
|
||||
|
||||
DirectDraw = NULL;
|
||||
TEST (DirectDrawCreateEx(NULL, (VOID**)&DirectDraw, IID_IDirectDraw7, NULL) == DD_OK);
|
||||
|
|
|
@ -18,7 +18,7 @@ HRESULT CALLBACK EnumDisplayModes( LPDDSURFACEDESC2 pDDSD, ENUMCONTEXT* Context
|
|||
if(setcout >= 5)
|
||||
return DDENUMRET_OK;
|
||||
|
||||
DWORD lpdwFrequency = 0;
|
||||
DWORD lpdwFrequency = 0;
|
||||
INT* passed = Context->passed;
|
||||
INT* failed = Context->failed;
|
||||
DDSURFACEDESC2 DisplayMode = {0};
|
||||
|
@ -29,12 +29,12 @@ HRESULT CALLBACK EnumDisplayModes( LPDDSURFACEDESC2 pDDSD, ENUMCONTEXT* Context
|
|||
TEST ( Context->DirectDraw->SetDisplayMode (pDDSD->dwWidth, pDDSD->dwHeight, pDDSD->ddpfPixelFormat.dwRGBBitCount, pDDSD->dwRefreshRate, 0) == DD_OK);
|
||||
TEST ( Context->DirectDraw->GetMonitorFrequency (&lpdwFrequency) == DD_OK && lpdwFrequency == pDDSD->dwRefreshRate);
|
||||
TEST ( Context->DirectDraw->GetDisplayMode (&DisplayMode) == DD_OK
|
||||
&& pDDSD->dwHeight == DisplayMode.dwHeight
|
||||
&& pDDSD->dwWidth == DisplayMode.dwWidth
|
||||
&& pDDSD->dwHeight == DisplayMode.dwHeight
|
||||
&& pDDSD->dwWidth == DisplayMode.dwWidth
|
||||
&& pDDSD->dwRefreshRate == DisplayMode.dwRefreshRate
|
||||
&& pDDSD->ddpfPixelFormat.dwRGBBitCount == DisplayMode.ddpfPixelFormat.dwRGBBitCount
|
||||
&& pDDSD->ddpfPixelFormat.dwRGBBitCount == DisplayMode.ddpfPixelFormat.dwRGBBitCount
|
||||
&& DisplayMode.dwFlags == DDSD_HEIGHT | DDSD_WIDTH | DDSD_PITCH | DDSD_PIXELFORMAT | DDSD_REFRESHRATE );
|
||||
|
||||
|
||||
setcout++;
|
||||
return DDENUMRET_OK;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue