Navigation Menu

Skip to content

Commit

Permalink
Only put surfaces in video memory if there are accelerated blits
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 10, 2002
1 parent bd0994d commit 4d6ea56
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/video/SDL_video.c
Expand Up @@ -844,7 +844,10 @@ SDL_Surface * SDL_DisplayFormat (SDL_Surface *surface)
return(NULL);
}
/* Set the flags appropriate for copying to display surface */
flags = (SDL_PublicSurface->flags&SDL_HWSURFACE);
if ((SDL_PublicSurface->flags&SDL_HWSURFACE == SDL_HWSURFACE) && current_video->info.blit_hw)
flags = SDL_HWSURFACE;
else
flags = SDL_SWSURFACE;
#ifdef AUTORLE_DISPLAYFORMAT
flags |= (surface->flags & (SDL_SRCCOLORKEY|SDL_SRCALPHA));
flags |= SDL_RLEACCELOK;
Expand Down

0 comments on commit 4d6ea56

Please sign in to comment.