home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / pascal / 5206 < prev    next >
Encoding:
Internet Message Format  |  1992-09-07  |  1.1 KB

  1. Path: sparky!uunet!pipex!unipalm!uknet!mucs!spec0.ee.man.ac.uk
  2. From: mark-r@spec0.ee.man.ac.uk (Mark Robinson (JO PhD))
  3. Newsgroups: comp.lang.pascal
  4. Subject: 256 colours in TPW 3.0?
  5. Message-ID: <6003@m1.cs.man.ac.uk>
  6. Date: 4 Sep 92 09:04:13 GMT
  7. Sender: news@cs.man.ac.uk
  8. Organization: Dept Electrical and Electronic Eng, Manchester University, UK
  9. Lines: 22
  10.  
  11.  
  12. Hi.
  13.  
  14. First, let me apologise if this is a FAQ or naive question, I'm
  15. new to both TPW and this group.
  16.  
  17. I've started using TP for WIndows 3.0 with Windows 3.1 set to
  18. 800x600 by 256 (I have a Trident SGVA card). My problem is I
  19. can't use any more than the 20 reserved system colours when
  20. displaying bitmaps, presumably because GetDeviceCaps returns 20
  21. for the number of colours supported by the device. I seem to
  22. be able to add colours to the palette and realize it, but when I
  23. BitBlt my 256 colour bitmap to the screen, all the colours are
  24. mapped to their nearest system colour.
  25.  
  26. Is this a compatability problem with Windows 3.1 or am I doing
  27. something silly? Does anybody have a fragment of code which displays
  28. 256 colour device independent bitmaps?
  29.  
  30. Cheers
  31. Mark
  32. mark-r@spec0.ee.man.ac.uk
  33.