home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!doc.ic.ac.uk!uknet!bhamcs!idf
- From: idf@cs.bham.ac.uk (Ian Fitchet)
- Newsgroups: comp.windows.x
- Subject: Pixmaps and Windows on an NCD - aarrgh!
- Message-ID: <IDF.93Jan25043719@fat-controller.cs.bham.ac.uk>
- Date: 25 Jan 93 04:37:18 GMT
- Sender: news@cs.bham.ac.uk
- Organization: School of Computer Science, University of Birmingham
- Lines: 25
- Nntp-Posting-Host: fattie
-
- Hi,
-
- I have been fiddling with Xlib and have come across an
- exasperating problem. I create a GC, a Pixmap and a Window do some
- drawing and then sit in an event loop. After some heartache I have
- determined that when I draw into the Pixmap and XCopyPlane to the
- Window in the Expose event handler I get inverse video. If I draw
- straight to the Window it comes out OK. The only thing to note is
- that BlackPixel returns 0 and WhitePixel returns 1, though that
- shouldn't make a difference.
-
- On a Sun its fine, its my B&W NCD(*) that is giving me some
- grief. Is there something I'm missing? Any obvious faults?
-
- (*) On a colour NCD its doesn't like XTextExtents - another problem...
-
- --
- Cheers,
-
- Ian
-
- -------------------------------------------------------------------------------
- Ian Fitchet I.D.Fitchet@cs.bham.ac.uk
- School of Computer Science
- Univ. of Birmingham, UK, B15 2TT
-