Many thanks Mark - that was exactly the problem - works perfectly now.
It's likely that you're not handling the padding correctly.
Is (ximage-bytes_per_line == windowWidth * windowDepthBytes) ?
In general, I like to create the XImage first and then allocate
the data later. That saves
i'm attempting to put together a simple test that creates a window, allocates a buffer
in
memory and using an XImage and XShmPutImage () displays it on my screen.
i have a tiny piece of code that (as far as i know) does all the right things - it
creates the
window but when i try to display the
i'm attempting to put together a simple test that creates a window, allocates a buffer
in
memory and using an XImage and XShmPutImage () displays it on my screen.
i have a tiny piece of code that (as far as i know) does all the right things - it
creates the
window but when i try to display the
1) Does your X-server have SHM support? MIT-SHM should show up in
the list of extensions reported by xdpyinfo.
2) Does your operating system have SHM support? This sort of thing
is often disabled for security reasons.
3) Programming errors on your part? BadAccess is generated
1) Does your X-server have SHM support? MIT-SHM should show up in
the list of extensions reported by xdpyinfo.
Yep - that extension is listed when i run xdpyinfo.
2) Does your operating system have SHM support? This sort of thing
is often disabled for security reasons.
i'm
It's likely that you're not handling the padding correctly.
Is (ximage-bytes_per_line == windowWidth * windowDepthBytes) ?
In general, I like to create the XImage first and then allocate
the data later. That saves you from having to do the work of
finding out what the padding is supposed
6 matches
Mail list logo