summaryrefslogtreecommitdiffstats
path: root/include/ui/egl-helpers.h
diff options
context:
space:
mode:
authorChen Zhang2019-01-25 08:47:23 +0100
committerGerd Hoffmann2019-02-05 10:45:44 +0100
commit051a0cde7b0a0dda9eef166f9aecd09dfc0a00cf (patch)
treec66249ebe2ec6af6bc8f6762c369f6becb6e1736 /include/ui/egl-helpers.h
parentui/cocoa.m: Fix macOS 10.14 deprecation warnings (diff)
downloadqemu-051a0cde7b0a0dda9eef166f9aecd09dfc0a00cf.tar.gz
qemu-051a0cde7b0a0dda9eef166f9aecd09dfc0a00cf.tar.xz
qemu-051a0cde7b0a0dda9eef166f9aecd09dfc0a00cf.zip
ui/egl-helpers: Augment parameter list of egl_texture_blend() to convey scales of viewport
This would help gtk-egl display showing scaled DMABuf cursor images when gtk window was zoomed. A default scale of (1.0, 1.0) was presumed for call sites where no scaling is needed. Signed-off-by: Chen Zhang <tgfbeta@me.com> Message-id: 23B229B3-3095-4DFB-8369-866784808D30@me.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/ui/egl-helpers.h')
-rw-r--r--include/ui/egl-helpers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ui/egl-helpers.h b/include/ui/egl-helpers.h
index 3fc656a7ba..b976cb8728 100644
--- a/include/ui/egl-helpers.h
+++ b/include/ui/egl-helpers.h
@@ -27,7 +27,7 @@ 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);
+ int x, int y, double scale_x, double scale_y);
#ifdef CONFIG_OPENGL_DMABUF