Surface scaling

It it possible to rescale surface (similarly to sdl_gfx zooming) using SDL 1.3? I noticed SDL_SetSurfaceScaleMode but blitting one surface to another one with different src and dst rects does not perform scaling.

I don’t have the source to my code handy, but you can using the
SDL_RenderCopy(). Just set the Dest Rect, width, height to whatever size
you want it to be instead of the actual width and height of the source
texture.From: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of hardcoder
Sent: Saturday, January 16, 2010 9:14 AM
To: sdl at lists.libsdl.org
Subject: [SDL] Surface scaling

It it possible to rescale surface (similarly to sdl_gfx zooming) using SDL
1.3? I noticed SDL_SetSurfaceScaleMode but blitting one surface to another
one with different src and dst rects does not perform scaling.

I do know how to perform texture rescaling :wink: