home *** CD-ROM | disk | FTP | other *** search
/ The AGA Experience 2 / agavol2.iso / software / utilities / programmers / source / backtoecs / back2ecs.txt < prev   
Encoding:
Text File  |  1978-06-29  |  2.0 KB  |  55 lines

  1. Article 24231 of comp.sys.amiga.programmer:
  2. Path: pdxgate!usenet.ee.pdx.edu!ogicse!network.ucsd.edu!usc!cs.utexas.edu!uunet!mcsun!sun4nl!tuegate.tue.nl!blade.stack.urc.tue.nl!raymondp
  3. From: raymondp@blade.stack.urc.tue.nl (Raymond Penners)
  4. Newsgroups: comp.sys.amiga.programmer
  5. Subject: Re: Back to ECS/OLD
  6. Message-ID: <1s2j8p$it7@tuegate.tue.nl>
  7. Date: 3 May 93 07:57:13 GMT
  8. References: <1rj4au$79a@tuegate.tue.nl>
  9. Organization: MCGV Stack, Eindhoven University of Technology, the Netherlands.
  10. Lines: 39
  11. NNTP-Posting-Host: blade.stack.urc.tue.nl
  12. X-Newsreader: TIN [version 1.1 PL6]
  13.  
  14. This is what I received from someone from jesup@cbmvax.commodore.com, I
  15. haven't tested it yet:
  16.  
  17.  
  18.  
  19.                         // fool graphics into thinking that we're 1x...
  20.                         // NOTE: this is NOT safe!  This WILL break in the
  21.                         // future!
  22.                         save_memtype = GfxBase->MemType;
  23.                         GfxBase->MemType = BANDWIDTH_1X;
  24.  
  25.                         // force chips into old modes...
  26.                         LoadView(NULL);
  27.  
  28.                         // make sure it took (paranoia?)
  29.                         WaitTOF();
  30.                         WaitTOF();
  31.  
  32.                         // execute their command...
  33.                         failureLevel = SystemTagList((char *) opts[0],NULL);
  34.                         failureCode = IoErr();
  35.  
  36.                         // make intuition rebuild it's world (overkill)
  37.                         GfxBase->MemType = save_memtype;
  38.                         RethinkDisplay();
  39.  
  40.  
  41.     Note that this code is ILLEGAL, and is guaranteed to break in the
  42. future.  Worse, it has a timing hole involving the modifications to GFXBase.
  43. However, it does work.  I advise running this code under Forbid() to reduce
  44. the chances of race conditions (the SystemTagList() call will break the
  45. Forbid, this is correct).
  46.  
  47.     Randell Jesup
  48.  
  49. -- 
  50. Greets,   __       __           +   Internet: raymondp@stack.urc.tue.nl
  51.          /_/      /_/           :   AmigaNet: 39:157/101.15
  52.         /|aymond /enners        +   NLA:      14:105/201.15
  53.  
  54.  
  55.