home *** CD-ROM | disk | FTP | other *** search
- Article 24231 of comp.sys.amiga.programmer:
- 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
- From: raymondp@blade.stack.urc.tue.nl (Raymond Penners)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Back to ECS/OLD
- Message-ID: <1s2j8p$it7@tuegate.tue.nl>
- Date: 3 May 93 07:57:13 GMT
- References: <1rj4au$79a@tuegate.tue.nl>
- Organization: MCGV Stack, Eindhoven University of Technology, the Netherlands.
- Lines: 39
- NNTP-Posting-Host: blade.stack.urc.tue.nl
- X-Newsreader: TIN [version 1.1 PL6]
-
- This is what I received from someone from jesup@cbmvax.commodore.com, I
- haven't tested it yet:
-
-
-
- // fool graphics into thinking that we're 1x...
- // NOTE: this is NOT safe! This WILL break in the
- // future!
- save_memtype = GfxBase->MemType;
- GfxBase->MemType = BANDWIDTH_1X;
-
- // force chips into old modes...
- LoadView(NULL);
-
- // make sure it took (paranoia?)
- WaitTOF();
- WaitTOF();
-
- // execute their command...
- failureLevel = SystemTagList((char *) opts[0],NULL);
- failureCode = IoErr();
-
- // make intuition rebuild it's world (overkill)
- GfxBase->MemType = save_memtype;
- RethinkDisplay();
-
-
- Note that this code is ILLEGAL, and is guaranteed to break in the
- future. Worse, it has a timing hole involving the modifications to GFXBase.
- However, it does work. I advise running this code under Forbid() to reduce
- the chances of race conditions (the SystemTagList() call will break the
- Forbid, this is correct).
-
- Randell Jesup
-
- --
- Greets, __ __ + Internet: raymondp@stack.urc.tue.nl
- /_/ /_/ : AmigaNet: 39:157/101.15
- /|aymond /enners + NLA: 14:105/201.15
-
-
-