[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PATCH 1/1] hw/gtk-egl: fixed dmabuf cursor location when
From: |
Qiming HOU |
Subject: |
[Qemu-trivial] [PATCH 1/1] hw/gtk-egl: fixed dmabuf cursor location when the main buffer is scaled |
Date: |
Sat, 7 Jul 2018 17:45:27 +0800 |
Signed-off-by: Qiming HOU <address@hidden>
---
ui/gtk-egl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/gtk-egl.c b/ui/gtk-egl.c
index fb00ad1..e3722c0 100644
--- a/ui/gtk-egl.c
+++ b/ui/gtk-egl.c
@@ -272,7 +272,7 @@ void gd_egl_scanout_flush(DisplayChangeListener *dcl,
vc->gfx.y0_top);
egl_texture_blend(vc->gfx.gls, &vc->gfx.win_fb, &vc->gfx.cursor_fb,
vc->gfx.y0_top,
- vc->gfx.cursor_x, vc->gfx.cursor_y);
+ vc->gfx.cursor_x * ww / vc->gfx.w, vc->gfx.cursor_y
* wh / vc->gfx.h);
} else {
egl_fb_blit(&vc->gfx.win_fb, &vc->gfx.guest_fb, !vc->gfx.y0_top);
}
--
2.17.1.windows.2