home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7331 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: cs.ruu.nl!usenet
  2. From: wsldanke@cs.ruu.nl (Wessel Dankers)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: BitMap problem
  5. Date: 14 Apr 96 23:23:55 +0100
  6. Organization: Dept of Computer Science, Utrecht University, The Netherlands
  7. Message-ID: <1158.6678T1403T2778@cs.ruu.nl>
  8. References: <4kfesg$sqe@sinsen.sn.no> <1996Apr10.104208.28803@imada.ou.dk>
  9.         <4kgqs9$clr@serpens.rhein.de> <1996Apr11.153514.2002@imada.ou.dk>
  10.     <4kjiim$lhd@serpens.rhein.de> <632.6675T1277T900@cs.ruu.nl> <4kntq5$78q@serpens.rhein.de>
  11. NNTP-Posting-Host: anx1p10.cc.ruu.nl
  12. X-Newsreader: THOR 2.22 (Amiga TCP/IP)
  13.  
  14. Michael van Elst <mlelstv@serpens.rhein.de> wrote:
  15. > wsldanke@cs.ruu.nl (Wessel Dankers) writes:
  16.  
  17. >>>>window with the wrong BitMap (the one(s) you allocated manually)
  18. >>>>linked to the RastPort, the OS gets annoyed and decides to annoy
  19. >>>>you with gurus.
  20.  
  21. >>> In fact, you end with gurus if you poke into a windows rastport.
  22. >>> And double buffering this way is illegal anyway.
  23.  
  24. >>Hmm. How can I AreaDraw() in a window's RastPort then? One *must* link in an
  25. >>AreaInfo and a TmpRas somehow.
  26.  
  27. > Yes. Maybe that was a bit misleading. A window RastPort is owned by
  28. > the window and uses the screens bitmap. Poking the bitmap and also
  29. > many other rastport fileds is illegal because the rastport is used
  30. > by Intuition too.
  31.  
  32. Yup.
  33.  
  34. > AreaInfo and TmpRas are allowed although I consider this bad design.
  35.  
  36. It's exactly what I do now, and it crashes. And that's even though I restore
  37. the original pointers after use! Maybe my TmpRas isn't big enough, although
  38. I'm quite certain it is.
  39.  
  40. > A cleaner method is to clone the windows RastPort and modify the copy.
  41.  
  42. You mean with ClipBlit()? Not really the fastest solution on earth, is it?
  43.  
  44. --
  45. Wessel Dankers
  46.  
  47. "Nusuth."
  48.  
  49.