cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/07/05:24:18

Message-ID: <8D53104ECD0CD211AF4000A0C9D60AE30140E96A@probe-2.acclaim-euro.net>
From: Shawn Hargreaves <ShawnH AT Probe DOT co DOT uk>
To: djgpp AT delorie DOT com
Subject: Re: scare_mouse() alternatives?
Date: Mon, 7 Jun 1999 10:24:02 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.0.1460.8)
Reply-To: djgpp AT delorie DOT com

Beholder1 writes:
> I'm wondering, is there any way to write to the screen while having 
> a mouse present without having to call scare_mouse() every time? 

Not unless you are using a VBE/AF driver that supports hardware cursors.

> When i scare the mouse, draw the screen, and then unscare the mouse, 
> I get an unattractive flicker.

If you are doing a fully fledged screen animation, you need to make
the mouse pointer be a part of that system. In other words don't use
Allegro to draw the cursor at all, but just plot your own sprite
using the same double buffering or page flipping system that you
have in place for the rest of your graphics. 


	Shawn Hargreaves.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019