mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-08-08 08:22:13 +00:00
Remove surface format workaround now that win32 driver is fixed
The win32 driver makes all 32bit surfaces be xRGB now, so we can remove this old workaround.
This commit is contained in:
parent
ec9069c84b
commit
8650d04aee
@ -1162,9 +1162,6 @@ SpiceCanvas *canvas_create(int width, int height, uint32_t format
|
||||
{
|
||||
pixman_image_t *image;
|
||||
|
||||
if (format == SPICE_SURFACE_FMT_32_ARGB) {
|
||||
format = SPICE_SURFACE_FMT_32_xRGB;
|
||||
}
|
||||
image = pixman_image_create_bits(spice_surface_format_to_pixman (format),
|
||||
width, height, NULL, 0);
|
||||
|
||||
@ -1200,10 +1197,6 @@ SpiceCanvas *canvas_create_for_data(int width, int height, uint32_t format,
|
||||
{
|
||||
pixman_image_t *image;
|
||||
|
||||
if (format == SPICE_SURFACE_FMT_32_ARGB) {
|
||||
format = SPICE_SURFACE_FMT_32_xRGB;
|
||||
}
|
||||
|
||||
image = pixman_image_create_bits(spice_surface_format_to_pixman (format),
|
||||
width, height, (uint32_t *)data, stride);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user