home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / mswindo / programm / misc / 1383 < prev    next >
Encoding:
Text File  |  1992-08-18  |  1.3 KB  |  39 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!mcsun!sunic!ugle.unit.no!lise.unit.no!geirt
  3. From: geirt@Lise.Unit.NO (Geir Torheim)
  4. Subject: StretchBlt() and colors...
  5. Message-ID: <1992Aug18.165359.13365@ugle.unit.no>
  6. Keywords: StretchBlt, SelectPalette, AnimatePalette
  7. Sender: news@ugle.unit.no (NetNews Administrator)
  8. Organization: Norwegian Institute of Technology
  9. Date: Tue, 18 Aug 92 16:53:59 GMT
  10. Lines: 27
  11.  
  12.  
  13. (Running Borland C++ 3.0, Windows 3.1)
  14.  
  15. Hi,
  16.  
  17. I've made a simple graphics program which creates a bitmap and uses
  18. BitBlt to copy the stuff to the screen. I use my own color palette and things
  19. worked just fine, until I modified my program from using BitBlt()
  20. to using StretchBlt(). This was the ONLY change I did in my program.
  21. Now the colors are all wrong. AnimatePalette doesn't affect the display
  22. anymore either. Actually, it may look like Windows won't use my color palette
  23. anymore... :-(
  24.  
  25. Are there any known problems with StretchBlt and colors, or should I assume
  26. a bug in my program ?
  27.  
  28. Any help appreciated.
  29.  
  30. -Geir
  31.  
  32.  
  33.  
  34. -- 
  35. Geir Torheim                             email: geirt@lise.unit.no
  36. MR Centre, med. section                  Phone: +47 7 99 89 36
  37. Olav Kyrres gt. 17                       Fax:   +47 7 99 77 08
  38. 7006 TRONDHEIM, NORWAY                    
  39.