[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 16:15:47 +0100 |
User-agent: |
NeoMutt/20180716 |
On Thu, Jan 24, 2019 at 10:11:24PM +0800, Chen Zhang wrote:
> Hi,
>
> > On Jan 24, 2019, at 8:07 PM, Gerd Hoffmann <address@hidden> wrote:
> >
> >> 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?
> It is valid to augment parameter list of egl_texture_blend(), however, there
> are
> two other callers: namely, spicy-display and egl-headless, neither of which
> seems to scale any underlying viewports. In that case, default scales (1.0,
> 1.0)
> shall be provided.
Yes, these callers can simply set scale_x and scale_y to 1.
cheers,
Gerd