Commit fab7d1c3 authored by Sam Lantinga's avatar Sam Lantinga

Only put surfaces in video memory if there are accelerated blits

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40307
parent 8de550f7
...@@ -844,7 +844,10 @@ SDL_Surface * SDL_DisplayFormat (SDL_Surface *surface) ...@@ -844,7 +844,10 @@ SDL_Surface * SDL_DisplayFormat (SDL_Surface *surface)
return(NULL); return(NULL);
} }
/* Set the flags appropriate for copying to display surface */ /* 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 #ifdef AUTORLE_DISPLAYFORMAT
flags |= (surface->flags & (SDL_SRCCOLORKEY|SDL_SRCALPHA)); flags |= (surface->flags & (SDL_SRCCOLORKEY|SDL_SRCALPHA));
flags |= SDL_RLEACCELOK; flags |= SDL_RLEACCELOK;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment