Merge pull request #3696 from akallabeth/gdi_stride_init

Initializing gdi.stride on resize.
This commit is contained in:
Martin Fleisz 2017-01-12 16:04:57 +01:00 committed by GitHub
commit 3784cff4c4

View File

@ -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;