ui/gtk: fix passing y0_top parameter to scanout
authorErico Nunes <ernunes@redhat.com>
Mon, 20 Feb 2023 17:56:05 +0000 (18:56 +0100)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Sun, 28 May 2023 09:08:25 +0000 (13:08 +0400)
commit94400fa53f81c9f58ad88cf3f3e7ea89ec423d39
tree0baa33d2757f2fa3475321ac7ff3c325b7d436c7
parentac84b57b4d74606f7f83667a0606deef32b2049d
ui/gtk: fix passing y0_top parameter to scanout

The dmabuf->y0_top flag is passed to .dpy_gl_scanout_dmabuf(), however
in the gtk ui both implementations dropped it when doing the next
scanout_texture call.

Fixes flipped linux console using vhost-user-gpu with the gtk ui
display.

Signed-off-by: Erico Nunes <ernunes@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20230220175605.43759-1-ernunes@redhat.com>
ui/gtk-egl.c
ui/gtk-gl-area.c