Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!mips!pacbell.com!tandem!zorch!amiga0!mykes From: mykes@amiga0.SF-Bay.ORG (Mike Schwartz) Newsgroups: comp.sys.amiga.programmer Subject: Re: Mouse blanking Message-ID: Date: 15 May 91 22:16:12 GMT References: <21502@cbmvax.commodore.com> Organization: Amiga makes it possible Lines: 36 In article <21502@cbmvax.commodore.com> peter@cbmvax.commodore.com (Peter Cherna) writes: >In article jsmoller@jsmami.UUCP (Jesper Steen Moller) writes: >>Isn't the best way of blanking the mouse to use SetPointer with >>a transparent image on the active window, just for the sake of >>compatibility? One day, the mouse-pointer may not be a sprite... > >!!! ONLY !!! if _you_ own the active window. It's not a very friendly >or safe thing to "attack" a window you don't own. > >>Jesper Steen Moller /// VOICE: +45 31 62 46 45 > > Peter >-- >Peter Cherna, Operating Systems Development Group, Commodore-Amiga, Inc. >{uunet|rutgers}!cbmvax!peter peter@cbmvax.commodore.com >My opinions do not necessarily represent the opinions of my employer. >"If all you have is a hammer, everything looks like a nail." OK, I think I can settle this once and for all (how to blank the screen). All you need to do is to strobe the copper with your own copper list that disables all the bitplane and sprite DMA. When your input event handler sees a mouse or key event, you can restore the display by doing a WorkbenchToFront() or by looking at GfxBase->copinit and strobing the copper with that. You should do a Disable()/Enable() pair around your code that diddles the copper and you should wait for VBL to do it. This method won't mess with anybody else's property. -- **************************************************** * I want games that look like Shadow of the Beast * * but play like Leisure Suit Larry. * ****************************************************