This commit is contained in:
Glenn Maynard
2005-10-21 02:51:44 +00:00
parent 42e88812ea
commit 37a136a4b8
+4 -4
View File
@@ -653,12 +653,12 @@ static bool blit_generic( const RageSurface *src_surf, const RageSurface *dst_su
/* Blit src onto dst. */
void RageSurfaceUtils::Blit( const RageSurface *src, RageSurface *dst, int width, int height )
{
if(width == -1)
if( width == -1 )
width = src->w;
if(height == -1)
if( height == -1 )
height = src->h;
width = min(src->w, dst->w);
height = min(src->h, dst->h);
width = min( src->w, dst->w );
height = min( src->h, dst->h );
/* Try each blit until we find one that works; run them in order of efficiency,
* so we use the fastest blit possible. */