home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / amiga / programm / 12797 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  2.3 KB

  1. Path: sparky!uunet!stanford.edu!rutgers!cbmvax!chrisg
  2. From: chrisg@cbmvax.commodore.com (Chris Green)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Bug in ECS?
  5. Message-ID: <34712@cbmvax.commodore.com>
  6. Date: 28 Aug 92 12:01:28 GMT
  7. References: <1992Aug27.143509.7372@ifi.unizh.ch>
  8. Reply-To: chrisg@cbmvax.commodore.com (Chris Green)
  9. Organization: Commodore, West Chester, PA
  10. Lines: 45
  11.  
  12. In article <1992Aug27.143509.7372@ifi.unizh.ch> swalter@avalon.physik.unizh.ch (walter stefan) writes:
  13. >I'm currently writing a tool which disables the Workbench screen.
  14. >However, for some reasons it will need to switch it on again at
  15. >the end. It does this by enabling copper DMA again and by directly
  16. >writing the neccessary values for a lores 5 plane 320x256 display
  17. >in the corresponding registers (bplcon0 etc.). Now I've noticed
  18. >that this causes more or less big problems for Amigas with ECS.
  19. >
  20. >What happens is that although the Workbench screen is back, a red
  21. >bitplane containing garbage is laid over it and stays there for upto
  22. >2 seconds. After that it fades away in stripes, leaving the screen
  23. >as it should be.
  24. >
  25. >Now, does anyone know why this happens or had the same problem earlier
  26. >and has found a solution? I'd be really glad for any hint. Thanks.
  27. >
  28.  
  29.     Waht do you mean disable the workbench screen?
  30.  
  31.     If you mean that you just want to blank it open another screen in front,
  32. or do OFF_DISPLAY.
  33.  
  34.     If you want to load your own custom View and restore the intuition one
  35. at the end, LoadView(&(IntuitionBase->ViewLord)) at the end.
  36.  
  37.     If you want to take over the copper, etc:
  38.  
  39.     LoadView(NULL);            /* reset any dangerous registers */
  40.     WaitTOF(); WaitTOF();        /* make sure they are really reset */
  41.     take over.
  42.         .
  43.         .
  44.     custom.cop1lc=GfxBase->copinit;    /* restart graphics copper list */
  45.     LoadView(&(IntuitionBase->ViewLord);    /* and get intuition's view back */
  46.  
  47.  
  48.  
  49. -- 
  50. *-------------------------------------------*---------------------------*
  51. |Chris Green - Graphics Software Engineer   - chrisg@commodore.COM      f
  52. |                  Commodore-Amiga          - uunet!cbmvax!chrisg       n
  53. |My opinions are my own, and do not         - icantforgettheimpression  o
  54. |necessarily represent those of my employer.- youmadeyouleftaholeinthe  r
  55. |"A screaming comes across the sky..."      - backofmyhead              d
  56. *-------------------------------------------*---------------------------*
  57.