qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] sdl zooming


From: Blue Swirl
Subject: Re: [Qemu-devel] [PATCH] sdl zooming
Date: Wed, 24 Jun 2009 19:07:04 +0300

On 6/24/09, Stefano Stabellini <address@hidden> wrote:
> Hi all,
>  this patch implements zooming capabilities for the sdl interface.
>  A new sdl_zoom_blit function is added that is able to scale and blit a
>  portion of a surface into another.
>  This way we can enable SDL_RESIZABLE and have a real_screen surface with
>  a different size than the guest surface and let sdl_zoom_blit take care
>  of the problem.

As you are already using the template system, for extra performance,
you could remove 'smooth' as parameter and instantiate separate
functions for both cases with something like:

static int glue(glue(sdl_zoom_rgb, BPP), _ ## SMOOTH)(SDL_Surface
*src, SDL_Surface *dst,
                                   SDL_Rect *dst_rect)

Then s/smooth/SMOOTH/g in the function and adjust callers.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]