st/xlib: Fix XImage stride calculation 33/7033/1
authorRichard Sandiford <r.sandiford@uk.ibm.com>
Mon, 17 Jun 2013 16:13:25 +0000 (12:13 -0400)
committerAdam Jackson <ajax@redhat.com>
Mon, 17 Jun 2013 16:15:13 +0000 (12:15 -0400)
commitc132c2978b02da7140462a633605a0127dfcceb4
treead6222b776d9d9af5e249982d5f94b29d7756299
parent876fefe2ff8901ae4b908cff89ac5dd4324f4fe5
st/xlib: Fix XImage stride calculation

Fixes window skew seen while running gnome on a 16-bit screen over vnc.

NOTE: This is a candidate for stable release branches.

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Richard Sandiford <rsandifo@linux.vnet.ibm.com>
src/gallium/state_trackers/glx/xlib/xm_api.c