diff options
Diffstat (limited to 'apps/plugins/sdl/src/video/SDL_gamma.c')
-rw-r--r-- | apps/plugins/sdl/src/video/SDL_gamma.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/plugins/sdl/src/video/SDL_gamma.c b/apps/plugins/sdl/src/video/SDL_gamma.c index 4fd037019f..c820620b5c 100644 --- a/apps/plugins/sdl/src/video/SDL_gamma.c +++ b/apps/plugins/sdl/src/video/SDL_gamma.c @@ -29,10 +29,10 @@ /* Math routines from uClibc: http://www.uclibc.org */ #include "math_private.h" #include "e_sqrt.h" -#include "e_pow.h" -#include "e_log.h" -#define pow(x, y) __ieee754_pow(x, y) -#define log(x) __ieee754_log(x) +//#include "e_pow.h" +//#include "e_log.h" +//#define pow(x, y) __ieee754_pow(x, y) +//#define log(x) __ieee754_log(x) #endif #include "SDL_sysvideo.h" @@ -94,7 +94,7 @@ int SDL_SetGamma(float red, float green, float blue) { int succeeded; SDL_VideoDevice *video = current_video; - SDL_VideoDevice *this = current_video; + SDL_VideoDevice *this = current_video; succeeded = -1; /* Prefer using SetGammaRamp(), as it's more flexible */ @@ -120,7 +120,7 @@ int SDL_GetGamma(float *red, float *green, float *blue) { int succeeded; SDL_VideoDevice *video = current_video; - SDL_VideoDevice *this = current_video; + SDL_VideoDevice *this = current_video; succeeded = -1; /* Prefer using GetGammaRamp(), as it's more flexible */ @@ -145,7 +145,7 @@ int SDL_SetGammaRamp(const Uint16 *red, const Uint16 *green, const Uint16 *blue) { int succeeded; SDL_VideoDevice *video = current_video; - SDL_VideoDevice *this = current_video; + SDL_VideoDevice *this = current_video; SDL_Surface *screen = SDL_PublicSurface; /* Verify the screen parameter */ @@ -177,7 +177,7 @@ int SDL_SetGammaRamp(const Uint16 *red, const Uint16 *green, const Uint16 *blue) /* If physical palette has been set independently, use it */ if(video->physpal) pal = video->physpal; - + SDL_SetPalette(screen, SDL_PHYSPAL, pal->colors, 0, pal->ncolors); return 0; @@ -196,7 +196,7 @@ int SDL_SetGammaRamp(const Uint16 *red, const Uint16 *green, const Uint16 *blue) int SDL_GetGammaRamp(Uint16 *red, Uint16 *green, Uint16 *blue) { SDL_VideoDevice *video = current_video; - SDL_VideoDevice *this = current_video; + SDL_VideoDevice *this = current_video; /* Lazily allocate the gamma table */ if ( ! video->gamma ) { |