From: Brian P. <br...@va...> - 2001-03-22 15:25:12
|
Kathy Bieltz wrote: > > Hi, > > I have a graphic program I created that displays > an image in a drawing area. When I read > in a new image I destroy the previous XImage > and create a new XImage and load the new > colormap. Then I do an XPutImage(). > > The problem I have is that although the colormap > changes the image doesn't change. Is there > something else besides the XImage I need > to destroy and recreate for the XImage to > display properly in the old drawing area? > I'm not sure what this has to do with Mesa but my guess is that the output is not being flushed. There's no guarantee that your Xlib drawing commands will be completed until you try to get an input event or do an explicit XSync(). Does your program have an event loop? -Brian |