Top Document: comp.windows.x Frequently Asked Questions (FAQ) 7/7 Previous Document: 180) Why doesn't the shared-memory extension appear to work? Next Document: 182) How do I get the width/height of an existing pixmap? See reader questions & answers on this topic! - Help others by sharing your knowledge The initial contents of pixmaps are undefined. This means that most servers will allocate the memory and leave around whatever happens to be there -- which is usually garbage. You probably want to clear the pixmap first using XFillRectangle() with a function of GXcopy and a foreground pixel of whatever color you want as your background (or 0L if you are using the pixmap as a mask). [courtesy Dave Lemke of NCD and Stuart Marks of Sun] User Contributions:Top Document: comp.windows.x Frequently Asked Questions (FAQ) 7/7 Previous Document: 180) Why doesn't the shared-memory extension appear to work? Next Document: 182) How do I get the width/height of an existing pixmap? Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Single Page [ Usenet FAQs | Web FAQs | Documents | RFC Index ] Send corrections/additions to the FAQ Maintainer: faq%craft@uunet.uu.net (X FAQ maintenance address)
Last Update March 27 2014 @ 02:12 PM
|
Comment about this article, ask questions, or add new information about this topic: