From: sam AT greenaumARSE!ARSE!ARSE!.demon.co.uk Newsgroups: comp.os.msdos.djgpp Subject: Re: scare_mouse() alternatives? Date: Sun, 06 Jun 1999 20:09:03 GMT Organization: Rossum's Universal Robots Message-ID: <375bd554.36426383@news.demon.co.uk> References: <19990605234517 DOT 16927 DOT 00000989 AT ng-fz1 DOT aol DOT com> NNTP-Posting-Host: greenaum.demon.co.uk X-NNTP-Posting-Host: greenaum.demon.co.uk:194.222.71.189 X-Trace: news.demon.co.uk 928699765 nnrp-11:23620 NO-IDENT greenaum.demon.co.uk:194.222.71.189 X-Complaints-To: abuse AT demon DOT net X-Newsreader: Forte Agent 1.5/32.452 X-No-Archive: yes MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 22 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Does scare_mouse() just hide the mouse pointer? The key to it is, to get your screen update monolithic. You want it all done before the graphics card starts to draw the screen. Are you taking a long time to draw the screen while the mouse is hidden? It could be, that by the time you've drawn your stuff and re-enabled the mouse, the raster has gone past that part of the screen and your mouse pointer has missed it's chance to appear. Draw your screen to a buffer, hide the mouse, then wait for the vertical blank, then blit the buffer to the screen, then show the mouse, and it should work fine. Alternatively, hide the mouse and don't bother re-showing it, and just draw your own mouse sprite. ------------------------------------------------------------------------ D O N ' T V O T E M P ' S A R E A L L C R O O K S http://www.greenaum.demon.co.uk/ Protect privacy, boycott Intel: http://www.bigbrotherinside.org