home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / x / 21524 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  1.3 KB

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