Home | History | Annotate | Download | only in windx5

Lines Matching refs:ramp

427 static int DX5_SetGammaRamp(_THIS, Uint16 *ramp);
428 static int DX5_GetGammaRamp(_THIS, Uint16 *ramp);
452 extern int DIB_SetGammaRamp(_THIS, Uint16 *ramp);
453 extern int DIB_GetGammaRamp(_THIS, Uint16 *ramp);
2304 static int DX5_SetGammaRamp(_THIS, Uint16 *ramp)
2314 return DIB_SetGammaRamp(this, ramp);
2318 SDL_SetError("SDL compiled without DirectX gamma ramp support");
2335 /* Set up the gamma ramp */
2336 SDL_memcpy(gamma_ramp.red, &ramp[0*256], 256*sizeof(*ramp));
2337 SDL_memcpy(gamma_ramp.green, &ramp[1*256], 256*sizeof(*ramp));
2338 SDL_memcpy(gamma_ramp.blue, &ramp[2*256], 256*sizeof(*ramp));
2350 static int DX5_GetGammaRamp(_THIS, Uint16 *ramp)
2360 return DIB_GetGammaRamp(this, ramp);
2364 SDL_SetError("SDL compiled without DirectX gamma ramp support");
2381 /* Set up the gamma ramp */
2384 SDL_memcpy(&ramp[0*256], gamma_ramp.red, 256*sizeof(*ramp));
2385 SDL_memcpy(&ramp[1*256], gamma_ramp.green, 256*sizeof(*ramp));
2386 SDL_memcpy(&ramp[2*256], gamma_ramp.blue, 256*sizeof(*ramp));