From 7f220304db0b87c9dd92e44a80e9240fc498f60e Mon Sep 17 00:00:00 2001 From: Yonit Halperin Date: Wed, 28 Nov 2012 14:07:38 -0500 Subject: 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. --- server/red_worker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/red_worker.c b/server/red_worker.c index 9bab003c..8f7f45a2 100644 --- a/server/red_worker.c +++ b/server/red_worker.c @@ -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)); -- cgit v1.2.3