libfreerdp-gdi: fix bitmap update scanline size

This commit is contained in:
Marc-André Moreau 2014-11-07 17:19:46 -05:00
parent c719fc88b9
commit bfdd3bd606
1 changed files with 1 additions and 1 deletions

View File

@ -528,7 +528,7 @@ static void gdi_bitmap_update(rdpContext* context, BITMAP_UPDATE* bitmapUpdate)
pSrcData = gdi->bitmap_buffer;
}
nSrcStep = nWidth * 4;
nSrcStep = nWidth * gdi->bytesPerPixel;
pDstData = gdi->primary_buffer;
nDstStep = gdi->width * gdi->bytesPerPixel;