Mercurial > sdl-ios-xcode
diff src/video/windx5/SDL_dx5video.c @ 334:f65715bd8ad8
Fixed DirectX fullscreen gamma control (thanks John!)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 09 Apr 2002 23:49:06 +0000 |
parents | ec53caed9fb2 |
children | 518ffd98a8f6 |
line wrap: on
line diff
--- a/src/video/windx5/SDL_dx5video.c Tue Apr 09 23:32:40 2002 +0000 +++ b/src/video/windx5/SDL_dx5video.c Tue Apr 09 23:49:06 2002 +0000 @@ -405,7 +405,7 @@ static int DX5_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors); static void DX5_SwapGamma(_THIS); -#ifdef IID_IDirectDrawGammaControl +#ifdef IDirectDrawGammaControl_SetGammaRamp static int DX5_SetGammaRamp(_THIS, Uint16 *ramp); static int DX5_GetGammaRamp(_THIS, Uint16 *ramp); #endif @@ -591,7 +591,7 @@ device->UnlockHWSurface = DX5_UnlockHWSurface; device->FlipHWSurface = DX5_FlipHWSurface; device->FreeHWSurface = DX5_FreeHWSurface; -#ifdef IID_IDirectDrawGammaControl +#ifdef IDirectDrawGammaControl_SetGammaRamp device->SetGammaRamp = DX5_SetGammaRamp; device->GetGammaRamp = DX5_GetGammaRamp; #endif @@ -796,7 +796,7 @@ #if DIRECTDRAW_VERSION <= 0x300 #error Your version of DirectX must be greater than or equal to 5.0 #endif -#ifndef IID_IDirectDrawGammaControl +#ifndef IDirectDrawGammaControl_SetGammaRamp /*if gamma is undefined then we really have directx <= 0x500*/ DDCAPS DDCaps; #else @@ -2118,7 +2118,7 @@ } /* Gamma code is only available on DirectX 7 and newer */ -#ifdef IID_IDirectDrawGammaControl +#ifdef IDirectDrawGammaControl_SetGammaRamp static int DX5_SetGammaRamp(_THIS, Uint16 *ramp) { @@ -2189,7 +2189,7 @@ return (result == DD_OK) ? 0 : -1; } -#endif /* IID_IDirectDrawGammaControl */ +#endif /* IDirectDrawGammaControl_SetGammaRamp */ void DX5_VideoQuit(_THIS) {