home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / programm / 15956 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  2.1 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!ub!dsinc!bagate!cbmvax!chrisg
  2. From: chrisg@cbmvax.commodore.com (Chris Green)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Bug in ViewPorts under 2.0
  5. Message-ID: <37090@cbmvax.commodore.com>
  6. Date: 17 Nov 92 12:31:59 GMT
  7. References: <1992Nov16.065000.1070@doug.cae.wisc.edu>
  8. Reply-To: chrisg@cbmvax.commodore.com (Chris Green)
  9. Organization: Commodore, West Chester, PA
  10. Lines: 32
  11.  
  12. In article <1992Nov16.065000.1070@doug.cae.wisc.edu> pochanay@cae.wisc.edu (Adisak Pochanayon) writes:
  13. >
  14. >    I have been writing some code that performs horizontal scrolling of
  15. >extremely large bitmaps (quickly).  This code works properly under both
  16. >1.3 and 2.0 in lowresolution.  It also works under 1.3 in hi-res fine.
  17. >However, when I use 2.0 and hi-res I get a wierd problem.  The RxOffset
  18. >in the RasInfos structure shifts the offset into the bitmap by two
  19. >pixels instead of 1.  Is this a bug under 2.0???  Or do I have to set
  20. >any special flags in the view or viewport that I'm using.  Has anybody
  21. >tried horizontal scrolling with a hires screen???  Why can 1.3 be accurate
  22. >in scrolling to a single pixel and then 2.0 only to multiples of two
  23. >(actually, it multiplies RxOffset by two or at least that's the way I
  24. >can duplicate the result in 1.3).
  25. >
  26. >    Please e-mail me with any help at pochanay@cae.wisc.edu asap.
  27. >Thanks.
  28.  
  29.  
  30.     This is the infamous "RxOffset Bug". 1.1,1.2,1.3, + 3.0 interpret the
  31. RxOffset in the correct manner (as hires pixels). Somehow 2.0 started
  32. interpreting it as low-resolution coordinates without anyone noticing
  33. before it was too late. This was fixed in 3.0. You'll have to make
  34. your code version sensitive.
  35.  
  36. -- 
  37. *-------------------------------------------*---------------------------*
  38. |Chris Green - Graphics Software Engineer   - chrisg@commodore.COM      f
  39. |                  Commodore-Amiga          - uunet!cbmvax!chrisg       n
  40. |My opinions are my own, and do not         - icantforgettheimpression  o
  41. |necessarily represent those of my employer.- youmadeyouleftaholeinthe  r
  42. |"A screaming comes across the sky..."      - backofmyhead              d
  43. *-------------------------------------------*---------------------------*
  44.