Home | History | Annotate | Download | only in video

Lines Matching refs:video

96 	SDL_VideoDevice *video = current_video;
109 if ( (succeeded < 0) && video->SetGamma ) {
111 succeeded = video->SetGamma(this, red, green, blue);
122 SDL_VideoDevice *video = current_video;
137 if ( (succeeded < 0) && video->GetGamma ) {
139 succeeded = video->GetGamma(this, red, green, blue);
147 SDL_VideoDevice *video = current_video;
153 SDL_SetError("No video mode has been set");
158 if ( ! video->gamma ) {
164 SDL_memcpy(&video->gamma[0*256], red, 256*sizeof(*video->gamma));
167 SDL_memcpy(&video->gamma[1*256], green, 256*sizeof(*video->gamma));
170 SDL_memcpy(&video->gamma[2*256], blue, 256*sizeof(*video->gamma));
178 if(video->physpal)
179 pal = video->physpal;
188 if ( video->SetGammaRamp ) {
189 succeeded = video->SetGammaRamp(this, video->gamma);
198 SDL_VideoDevice *video = current_video;
202 if ( ! video->gamma ) {
203 video->gamma = SDL_malloc(3*256*sizeof(*video->gamma));
204 if ( ! video->gamma ) {
208 if ( video->GetGammaRamp ) {
210 video->GetGammaRamp(this, video->gamma);
215 video->gamma[0*256+i] = (i << 8) | i;
216 video->gamma[1*256+i] = (i << 8) | i;
217 video->gamma[2*256+i] = (i << 8) | i;
224 SDL_memcpy(red, &video->gamma[0*256], 256*sizeof(*red));
227 SDL_memcpy(green, &video->gamma[1*256], 256*sizeof(*green));
230 SDL_memcpy(blue, &video->gamma[2*256], 256*sizeof(*blue));