Lines Matching refs:screen
25 SDL_Surface *screen; in SetVideoMode() local
30 screen = SDL_SetVideoMode(w, h, video_bpp, video_flags); in SetVideoMode()
31 if ( screen == NULL ) { in SetVideoMode()
36 printf("Running in %s mode\n", screen->flags & SDL_FULLSCREEN ? in SetVideoMode()
45 SDL_SetColors(screen, palette, 0, 256); in SetVideoMode()
46 if ( SDL_LockSurface(screen) < 0 ) { in SetVideoMode()
51 buffer = (Uint8 *)screen->pixels; in SetVideoMode()
52 for ( i=0; i<screen->h; ++i ) { in SetVideoMode()
53 memset(buffer,(i*255)/screen->h, in SetVideoMode()
54 screen->w*screen->format->BytesPerPixel); in SetVideoMode()
55 buffer += screen->pitch; in SetVideoMode()
57 SDL_UnlockSurface(screen); in SetVideoMode()
58 SDL_UpdateRect(screen, 0, 0, 0, 0); in SetVideoMode()
124 SDL_Surface *screen; in HotKey_ToggleFullScreen() local
126 screen = SDL_GetVideoSurface(); in HotKey_ToggleFullScreen()
127 if ( SDL_WM_ToggleFullScreen(screen) ) { in HotKey_ToggleFullScreen()
129 (screen->flags&SDL_FULLSCREEN) ? "fullscreen" : "windowed"); in HotKey_ToggleFullScreen()
133 SetVideoMode(screen->w, screen->h); in HotKey_ToggleFullScreen()