]> Git Repo - qemu.git/commit - ui/cocoa.m
ui/cocoa: Fix stride resolution of pixman image
authorAkihiko Odaki <[email protected]>
Mon, 22 Feb 2021 14:40:12 +0000 (23:40 +0900)
committerGerd Hoffmann <[email protected]>
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 <[email protected]>
Message-Id: <20210222144012[email protected]>
Signed-off-by: Gerd Hoffmann <[email protected]>
ui/cocoa.m
This page took 0.026422 seconds and 4 git commands to generate.