mirror of
git://git.proxmox.com/git/spiceterm.git
synced 2025-08-22 02:07:24 +00:00
set SPICE_IMAGE_FLAGS_CACHE_ME flag
This is required in order to cache images.
This commit is contained in:
parent
f3112e0013
commit
62e6a86b86
1
screen.c
1
screen.c
@ -165,6 +165,7 @@ spice_screen_update_from_bitmap_cmd(uint32_t surface_id, QXLRect bbox, uint8_t *
|
|||||||
|
|
||||||
if (cache_id) {
|
if (cache_id) {
|
||||||
QXL_SET_IMAGE_ID(image, QXL_IMAGE_GROUP_DEVICE, cache_id);
|
QXL_SET_IMAGE_ID(image, QXL_IMAGE_GROUP_DEVICE, cache_id);
|
||||||
|
image->descriptor.flags = SPICE_IMAGE_FLAGS_CACHE_ME;
|
||||||
} else {
|
} else {
|
||||||
QXL_SET_IMAGE_ID(image, QXL_IMAGE_GROUP_DEVICE, ++unique);
|
QXL_SET_IMAGE_ID(image, QXL_IMAGE_GROUP_DEVICE, ++unique);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user