Logo Search packages:      
Sourcecode: race version File versions

CL_Surface * Blitter::scale_surface ( CL_Surface *  sur,
int  width,
int  height 
) [static]

Creates a new surface (based on a canvas) with the given width and height and stretches the source surface onto it

sur The source surface
width The new width of the surface.
height The new height of the surface.
A newly created surface, the caller is responsible to delete it.

Definition at line 294 of file blitter.cpp.

References scale_surface_to_canvas().

  return CL_Surface::create (Blitter::scale_surface_to_canvas(sur, width, height), true);

Generated by  Doxygen 1.6.0   Back to index