mirror of https://github.com/FreeRDP/FreeRDP
libfreerdp-gdi: fix bitmap update scanline size
This commit is contained in:
parent
c719fc88b9
commit
bfdd3bd606
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue