Fixed stride for XCreateImage.

This commit is contained in:
Armin Novak 2017-01-25 08:33:04 +01:00
parent d3429109dd
commit 042594bf82

View File

@ -375,8 +375,8 @@ static BOOL xf_sw_desktop_resize(rdpContext* context)
}
if (!(xfc->image = XCreateImage(xfc->display, xfc->visual, xfc->depth, ZPixmap,
0,
(char*) gdi->primary_buffer, gdi->width, gdi->height, xfc->scanline_pad, 0)))
0, gdi->primary_buffer, gdi->width,
gdi->height, xfc->scanline_pad, gdi->stride)))
{
goto out;
}
@ -627,7 +627,7 @@ BOOL xf_create_window(xfContext* xfc)
xfc->depth,
ZPixmap, 0, (char*) gdi->primary_buffer,
settings->DesktopWidth, settings->DesktopHeight,
xfc->scanline_pad, 0);
xfc->scanline_pad, gdi->stride);
}
return TRUE;