Clean up scale_surface to use only BLI on the Pandora too.

This commit is contained in:
Boldizsár Lipka 2014-02-16 23:35:20 +01:00
parent 10df18d7cf
commit d62fbe59fd

View file

@ -433,9 +433,6 @@ surface scale_surface(const surface &surf, int w, int h, bool optimize)
return NULL;
}
#ifdef PANDORA
if (w > surf->w || h > surf->h)
#endif
{
const_surface_lock src_lock(src);
surface_lock dst_lock(dst);
@ -563,12 +560,6 @@ surface scale_surface(const surface &surf, int w, int h, bool optimize)
}
}
}
#ifdef PANDORA
else
{
scale_surface_down(dst, src, w, h);
}
#endif
return optimize ? create_optimized_surface(dst) : dst;
}