qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH]gtk-egl: Blend cursor buffer within a scaled vie


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH]gtk-egl: Blend cursor buffer within a scaled viewport
Date: Thu, 24 Jan 2019 13:07:52 +0100
User-agent: NeoMutt/20180716

> diff --git a/include/ui/egl-helpers.h b/include/ui/egl-helpers.h
> index 3fc656a..63ffc2d 100644
> --- a/include/ui/egl-helpers.h
> +++ b/include/ui/egl-helpers.h
> @@ -28,6 +28,8 @@ void egl_fb_read(void *dst, egl_fb *src);
>  void egl_texture_blit(QemuGLShader *gls, egl_fb *dst, egl_fb *src, bool 
> flip);
>  void egl_texture_blend(QemuGLShader *gls, egl_fb *dst, egl_fb *src, bool 
> flip,
>                         int x, int y);
> +void egl_texture_blend2(QemuGLShader *gls, egl_fb *dst, egl_fb *src, bool 
> flip,
> +                        int x, int y, int w, int h);

Why do you add egl_texture_blend2()?
How about adding scale_{x,y} parameters to egl_texture_blend() instead?

> +                           vc->gfx.scale_x * vc->gfx.cursor_fb.width,
> +                           vc->gfx.scale_x * vc->gfx.cursor_fb.height);
                                            ^ this should be y I guess ?

cheers,
  Gerd




reply via email to

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