home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / os2 / misc / 26123 < prev    next >
Encoding:
Internet Message Format  |  1992-07-31  |  2.4 KB

  1. Path: sparky!uunet!utcsri!eecg.toronto.edu!lemieux
  2. Newsgroups: comp.os.os2.misc
  3. From: lemieux@eecg.toronto.edu (Guy Gerard Lemieux)
  4. Subject: Re: "Bug" in Joel Armungaud's 800x600x256 driver - update
  5. Message-ID: <1992Jul31.100408.1501@jarvis.csri.toronto.edu>
  6. References: <1992Jul30.172933.24073@njitgw.njit.edu>
  7. Date: 31 Jul 92 14:04:08 GMT
  8. Lines: 49
  9.  
  10. dic5340@hertz.njit.edu (David Charlap) writes:
  11. >You've all heard the bug about dotted vertical and horizontal lines
  12. >appearing (and not always clearing) when popping up menus on the WPS
  13. >desktop.  Well, I've noticed that after installing a background bitmap
  14. >for the desktop, these lines don't appear.  
  15.  
  16. I have a background bitmap, and the lines still appear.
  17. (I am using argyle.bmp from Windows 3.1 :)
  18.  
  19. I think the algorithm simply inverts the pixel index in order to draw
  20. the dotted lines.  If you are using specialized video drivers, perhaps
  21. the colour table has two complementary indexes which have the same
  22. colour (unlikely), or:
  23.  
  24. perhaps your background bitmap is a dithered pattern of two
  25. complementary indexes, and so drawing the dotted lines merely shifts the
  26. dither pixels a bit along the line and you can't notice the difference.
  27. For example, simplify things by saying the background bitmap uses only
  28. two colours: black (0) or white (1), and the indexes of these colours
  29. are such that ~black == white.  If your background is dithered:
  30.          010101010101010101
  31.          101010101010101010
  32.          010101010101010101
  33.          101010101010101010
  34.          010101010101010101
  35.          101010101010101010
  36. and you draw a border around the background by inverting (~):
  37.          010101010101010101
  38.          110101010101010100
  39.          000101010101010111
  40.          111010101010101000
  41.          001010101010101011
  42.          101010101010101010
  43. then you can hardly tell the difference (when the pixels are small enough).
  44.  
  45. >PS: Anyone with Windows background bitmaps can use them unmodified
  46. >    with WPS.  Apparantly, you don't have to convert them to OS/2
  47. >    bitmaps for Lockup and the background to read them.  I've
  48. >    currently got the Windows 3.1 "Arcade" backdrop tiled across my
  49. >    desktop with no ill effects (although it's kind of hard to read
  50. >    icon text)
  51.  
  52. I can confirm this, I've cycled through them all...
  53.  
  54. >-- 
  55. >   |)  David Charlap           "I don't even represent myself
  56. >  /|_  dic5340@hertz.njit.edu   sometimes so NJIT is right out!.
  57. > ((|,)
  58. >  ~|~  Hi! I am a .signature virus, copy me into your .signature file.
  59.