mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-08 12:24:55 +00:00
red_worker: no need to align the stride of internal images
Internal images are just read from the surface, compressed, and sent to the client. Then, they are destroyed. I can't find any reason for aligning their memory.
This commit is contained in:
parent
1e6f872066
commit
7f220304db
@ -5065,7 +5065,7 @@ static ImageItem *red_add_surface_area_image(DisplayChannelClient *dcc, int surf
|
||||
width = area->right - area->left;
|
||||
height = area->bottom - area->top;
|
||||
bpp = SPICE_SURFACE_FMT_DEPTH(surface->context.format) / 8;
|
||||
stride = SPICE_ALIGN(width * bpp, 4);
|
||||
stride = width * bpp;
|
||||
|
||||
item = (ImageItem *)spice_malloc_n_m(height, stride, sizeof(ImageItem));
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user