]> git.proxmox.com Git - mirror_qemu.git/commit - ui/cocoa.m
ui/cocoa: Fix stride resolution of pixman image
authorAkihiko Odaki <akihiko.odaki@gmail.com>
Mon, 22 Feb 2021 14:40:12 +0000 (23:40 +0900)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 4 Mar 2021 08:35:03 +0000 (09:35 +0100)
commitd9c32b8f7f5f05511d77a1ec1d1d35bf7bff2961
treeaf057dd59799f4af9271adf7a8afb3413ec6bd46
parent8eb13bbbac08aa077efcf9877c9646c4497d766c
ui/cocoa: Fix stride resolution of pixman image

A display can receive an image which its stride is greater than its
width. In fact, when a guest requests virtio-gpu to scan out a
smaller part of an image, virtio-gpu passes it to a display as an
image which its width represents the one of the part and its stride
equals to the one of the whole image.

This change makes ui/cocoa to cover such cases.

Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Message-Id: <20210222144012.21486-1-akihiko.odaki@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/cocoa.m