Path: utzoo!attcan!lsuc!canrem![stuart_rose@canrem.uucp] From: stuart_rose@canrem.uucp (stuart rose) Newsgroups: comp.windows.x Subject: ximage->pixmap->window Message-ID: <199026.1189.7999@canrem.uucp> Date: 26 Dec 90 07:02:19 GMT Reply-To: "stuart rose" Organization: Canada Remote Systems Lines: 30 curtz@skat.usc.edu (Curtz Lam) writes in article <29010@usc> ... CL> I am trying to display some images with XImage->Pixmap->Window, CL>by using XPutImage and XClearArea. The problem is sometimes the old CL>image keeps appearing two or three times before the new one shows up. CL>I've tried putting an XFlush after XPutImage and before XClearArea but CL>it didn't help. Any idea? CL> Curtz CL>p.s: It works fine when I use XImage->Window although I would prefer using CL> a Pixmap. I believe you should be using XCopyArea to copy the pixmap to the window. In any case, if you can get away without the pixmap, do so. I find that pixmaps use more of the server resources than I would like. When running an X server on my PC (DEC's PCSA PC DECwindows), programs with pixmaps eat up available RAM and eventually cause disk swapping. Take Care, | stuart.rose#canremote.uucp Stuart | Mississauga, Ontario, Canada. --- ~ DeLuxe}ac #2428 ~ From Beatiful Downtown Mississuga -- Canada Remote Systems. Toronto, Ontario NorthAmeriNet Host