Fixed stride for XCreateImage.
This commit is contained in:
parent
d3429109dd
commit
042594bf82
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user