Lines Matching refs:screen
18 SDL_Surface *LoadXBM(SDL_Surface *screen, int w, int h, Uint8 *bits) in LoadXBM() argument
55 SDL_Surface *screen; in main() local
99 if ( (screen=SDL_SetVideoMode(640,480,video_bpp,videoflags)) == NULL ) { in main()
112 SDL_SetColors(screen, palette, 0, 256); in main()
116 if ( SDL_LockSurface(screen) < 0 ) { in main()
121 buffer=(Uint8 *)screen->pixels; in main()
122 if (screen->format->BytesPerPixel!=2) { in main()
123 for ( i=0; i<screen->h; ++i ) { in main()
124 memset(buffer,(i*255)/screen->h, screen->pitch); in main()
125 buffer += screen->pitch; in main()
130 for ( i=0; i<screen->h; ++i ) { in main()
131 gradient=((i*255)/screen->h); in main()
132 color = SDL_MapRGB(screen->format, gradient, gradient, gradient); in main()
134 for (k=0; k<screen->w; k++) in main()
138 buffer += screen->pitch; in main()
141 SDL_UnlockSurface(screen); in main()
142 SDL_UpdateRect(screen, 0, 0, 0, 0); in main()
145 bitmap = LoadXBM(screen, picture_width, picture_height, in main()
165 screen, &dst); in main()
166 SDL_UpdateRects(screen,1,&dst); in main()