<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;"><div data-click-id="text" style="max-width: 800px;" class="_3xX726aBn29LDbsDtzr_6E _1Ap4F5maDtT1E1YuCiaO0r D3IL3FD0RFy_mkKLPwL4"><div data-darkreader-inline-color="" class="_292iotee39Lmt0MkQZ2hPV RichTextJSON-root" style="color: rgb(215, 218, 220); --darkreader-inline-color: #d0ccc6;"><p class="_1qeIAgB0cPwnLhDF9XSiJM">Hello there!<br></p><p class="_1qeIAgB0cPwnLhDF9XSiJM">I've been struggling to load in a background image from disk. Xlib doesn't provide the functionality.<br></p><p class="_1qeIAgB0cPwnLhDF9XSiJM">So I decided to use <a target="_blank" rel="noopener nofollow ugc" class="_3t5uN8xUmg0TOwRCOGQEcU" href="http://openil.sourceforge.net/">DevIL</a> and it now loads into a buffer successfully(at least looks like it), but Xorg is now creating 
BadMatch errors. I'm kinda a starter in c and xlib, soo I really have no
 idea.<br></p><p class="_1qeIAgB0cPwnLhDF9XSiJM">Code/project here: <a target="_blank" rel="noopener nofollow ugc" class="_3t5uN8xUmg0TOwRCOGQEcU" href="https://github.com/chm46e/blanket">code</a><br></p><p class="_1qeIAgB0cPwnLhDF9XSiJM">Most of the code is in: src/blanket.c and src/dr.c. some info in readme..<br></p><p class="_1qeIAgB0cPwnLhDF9XSiJM">There
 doesn't appear to be a clear answer anywhere on how to do this. There's
 probably some wizard who can do this eyes closed and that's why I'm 
here.<br></p><p class="_1qeIAgB0cPwnLhDF9XSiJM">Thanks:D<br></p></div></div><div><br></div></div><br></body></html>