Lines Matching refs:current

106 static SDL_Surface* QZ_SetVideoMode     (_THIS, SDL_Surface *current,
352 SDL_SetError("Couldn't figure out current display mode.");
377 /* Determine the current screen size */
687 static SDL_Surface* QZ_SetVideoFullScreen (_THIS, SDL_Surface *current, int width,
697 current->flags = SDL_FULLSCREEN;
698 current->w = width;
699 current->h = height;
749 current->pixels = (Uint32*) CGDisplayBaseAddress (display_id);
750 current->pitch = CGDisplayBytesPerRow (display_id);
752 current->flags |= SDL_HWSURFACE;
753 current->flags |= SDL_PREALLOC;
754 /* current->hwdata = (void *) CGDisplayGetDrawingContext (display_id); */
775 current->flags |= (SDL_HWSURFACE|SDL_DOUBLEBUF);
781 current->pixels = SDL_malloc (current->pitch * current->h * 2);
782 if (current->pixels == NULL) {
787 sw_buffers[0] = current->pixels;
788 sw_buffers[1] = (Uint8*)current->pixels + current->pitch * current->h;
797 current->flags |= SDL_HWPALETTE;
821 current->flags |= (SDL_NOFRAME|SDL_RESIZABLE) & mode_flags;
876 current->flags |= SDL_OPENGL;
889 current->pitch = 4 * current->w;
890 current->pixels = SDL_malloc (current->h * current->pitch);
892 cg_context = CGBitmapContextCreate (current->pixels, current->w, current->h,
893 8, current->pitch, cgColorspace,
897 current->flags |= SDL_SWSURFACE;
898 current->flags |= SDL_ASYNCBLIT;
899 current->hwdata = (void *) cg_context;
944 mode_flags = current->flags;
949 return current;
963 static SDL_Surface* QZ_SetVideoWindowed (_THIS, SDL_Surface *current, int width,
973 current->flags = 0;
974 current->w = width;
975 current->h = height;
1018 current->flags |= SDL_NOFRAME;
1024 current->flags |= SDL_RESIZABLE;
1064 current->flags |= (SDL_NOFRAME|SDL_RESIZABLE) & mode_flags;
1088 current->flags |= SDL_OPENGL;
1105 current->pitch = 4 * current->w;
1106 current->pixels = SDL_malloc (current->h * current->pitch);
1108 cg_context = CGBitmapContextCreate (current->pixels, current->w, current->h,
1109 8, current->pitch, cgColorspace,
1113 current->flags |= SDL_SWSURFACE;
1114 current->flags |= SDL_ASYNCBLIT;
1115 current->hwdata = (void *) cg_context;
1123 mode_flags = current->flags;
1131 return current;
1135 static SDL_Surface* QZ_SetVideoModeInternal (_THIS, SDL_Surface *current,
1141 current->flags = 0;
1142 current->pixels = NULL;
1149 current = QZ_SetVideoFullScreen (this, current, width, height, bpp, flags, save_gl );
1150 if (current == NULL)
1157 current = QZ_SetVideoWindowed (this, current, width, height, &bpp, flags, save_gl );
1158 if (current == NULL)
1204 if ( ! SDL_ReallocFormat (current, bpp,
1214 return current;
1217 static SDL_Surface* QZ_SetVideoMode(_THIS, SDL_Surface *current,
1221 /* Don't throw away the GL context if we can just resize the current one. */
1223 const BOOL save_gl = ( (video_set == SDL_TRUE) && ((flags & SDL_OPENGL) == (current->flags & SDL_OPENGL)) && (bpp == current->format->BitsPerPixel) );
1235 retval = QZ_SetVideoModeInternal (this, current, width, height, bpp, flags, save_gl);