diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2012-11-28 14:07:38 -0500 |
---|---|---|
committer | Yonit Halperin <yhalperi@redhat.com> | 2012-11-29 09:56:43 -0500 |
commit | 7f220304db0b87c9dd92e44a80e9240fc498f60e (patch) | |
tree | ad011a84f6a70ab02a01610902e676be3311666d | |
parent | 1e6f872066cddf25e397e2cbaad9f4ab1b0c2de3 (diff) |
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.
-rw-r--r-- | server/red_worker.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
5065 | width = area->right - area->left; | 5065 | width = area->right - area->left; |
5066 | height = area->bottom - area->top; | 5066 | height = area->bottom - area->top; |
5067 | bpp = SPICE_SURFACE_FMT_DEPTH(surface->context.format) / 8; | 5067 | bpp = SPICE_SURFACE_FMT_DEPTH(surface->context.format) / 8; |
5068 | stride = SPICE_ALIGN(width * bpp, 4); | 5068 | stride = width * bpp; |
5069 | 5069 | ||
5070 | item = (ImageItem *)spice_malloc_n_m(height, stride, sizeof(ImageItem)); | 5070 | item = (ImageItem *)spice_malloc_n_m(height, stride, sizeof(ImageItem)); |
5071 | 5071 | ||