Merge pull request #3696 from akallabeth/gdi_stride_init
Initializing gdi.stride on resize.
This commit is contained in:
commit
3784cff4c4
@ -1058,6 +1058,8 @@ static BOOL gdi_init_primary(rdpGdi* gdi, UINT32 stride, UINT32 format,
|
||||
|
||||
if (stride > 0)
|
||||
gdi->stride = stride;
|
||||
else
|
||||
gdi->stride = gdi->width * GetBytesPerPixel(gdi->dstFormat);
|
||||
|
||||
if (!gdi->primary)
|
||||
goto fail_primary;
|
||||
|
Loading…
Reference in New Issue
Block a user