diff options
author | Chen Zhang <tgfbeta@me.com> | 2019-01-25 15:47:23 +0800 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-02-05 10:45:44 +0100 |
commit | 051a0cde7b0a0dda9eef166f9aecd09dfc0a00cf (patch) | |
tree | c66249ebe2ec6af6bc8f6762c369f6becb6e1736 /ui/egl-headless.c | |
parent | 5e24600a7c1cb530c0fed3c699c4d08f16d69b8e (diff) | |
download | qemu-051a0cde7b0a0dda9eef166f9aecd09dfc0a00cf.zip qemu-051a0cde7b0a0dda9eef166f9aecd09dfc0a00cf.tar.gz qemu-051a0cde7b0a0dda9eef166f9aecd09dfc0a00cf.tar.bz2 |
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 'ui/egl-headless.c')
-rw-r--r-- | ui/egl-headless.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/egl-headless.c b/ui/egl-headless.c index 519e7ba..e67b47a 100644 --- a/ui/egl-headless.c +++ b/ui/egl-headless.c @@ -142,7 +142,8 @@ static void egl_scanout_flush(DisplayChangeListener *dcl, egl_texture_blit(edpy->gls, &edpy->blit_fb, &edpy->guest_fb, !edpy->y_0_top); egl_texture_blend(edpy->gls, &edpy->blit_fb, &edpy->cursor_fb, - !edpy->y_0_top, edpy->pos_x, edpy->pos_y); + !edpy->y_0_top, edpy->pos_x, edpy->pos_y, + 1.0, 1.0); } else { /* no cursor -> use simple framebuffer blit */ egl_fb_blit(&edpy->blit_fb, &edpy->guest_fb, edpy->y_0_top); |