From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <18aefafa4a55e60cd64469860ad0c6a2@plan9.bell-labs.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] refresh problems with drawterm on x (freebsd)? From: "Russ Cox" In-Reply-To: <714e1db4e1070444e5392174bec42571@plan9.bell-labs.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Thu, 6 Mar 2003 09:16:58 -0500 Topicbox-Message-UUID: 7b8b8f04-eacb-11e9-9e20-41e7f4b1d025 > what about your old drawterm binary didn't work? never mind, i should read my mail. still, the drawterm code that is on sources is what i've been trying to use, and it still has the glyph refresh problem. it seems pretty clear that painting the background is completing after painting the foreground characters, but the question is why. we have the same problem with the accelerated hardware drivers -- drawing the background is an accelerated op so you have to issue it and then wait for it to complete before trying to draw the text. i did not realize that sequential X calls can overlap like that, but empirically, they must. yesterday i tried inserting calls to XSync() after issuing the XFillRectangle calls, but that didn't help. i still need to try XFlush. i really wish the documentation were better.