comparison src/video/SDL_video.c @ 313:67ad846ed21c

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Wed, 20 Mar 2002 02:37:44 +0000
parents 3879bed3395c
children db0cc6034336
comparison
equal deleted inserted replaced
312:d62b9aeaf0ea 313:67ad846ed21c
842 if ( ! SDL_PublicSurface ) { 842 if ( ! SDL_PublicSurface ) {
843 SDL_SetError("No video mode has been set"); 843 SDL_SetError("No video mode has been set");
844 return(NULL); 844 return(NULL);
845 } 845 }
846 /* Set the flags appropriate for copying to display surface */ 846 /* Set the flags appropriate for copying to display surface */
847 if ((SDL_PublicSurface->flags&SDL_HWSURFACE == SDL_HWSURFACE) && current_video->info.blit_hw) 847 if (((SDL_PublicSurface->flags&SDL_HWSURFACE) == SDL_HWSURFACE) && current_video->info.blit_hw)
848 flags = SDL_HWSURFACE; 848 flags = SDL_HWSURFACE;
849 else 849 else
850 flags = SDL_SWSURFACE; 850 flags = SDL_SWSURFACE;
851 #ifdef AUTORLE_DISPLAYFORMAT 851 #ifdef AUTORLE_DISPLAYFORMAT
852 flags |= (surface->flags & (SDL_SRCCOLORKEY|SDL_SRCALPHA)); 852 flags |= (surface->flags & (SDL_SRCCOLORKEY|SDL_SRCALPHA));