]> git.proxmox.com Git - mirror_qemu.git/blobdiff - ui/gtk-egl.c
ui/gtk: set the area of the scanout texture correctly
[mirror_qemu.git] / ui / gtk-egl.c
index 19130041bca1b8a84c21b3b4a40dab6a14f95cfa..e99e3b0d8c2200043beb0a9cacab1443bc89084d 100644 (file)
@@ -257,7 +257,8 @@ void gd_egl_scanout_dmabuf(DisplayChangeListener *dcl,
 
     gd_egl_scanout_texture(dcl, dmabuf->texture,
                            dmabuf->y0_top, dmabuf->width, dmabuf->height,
-                           0, 0, dmabuf->width, dmabuf->height);
+                           dmabuf->x, dmabuf->y, dmabuf->scanout_width,
+                           dmabuf->scanout_height);
 
     if (dmabuf->allow_fences) {
         vc->gfx.guest_fb.dmabuf = dmabuf;