Message-ID: <19990607123545.A25332@tabor.ta.jcu.cz> Date: Mon, 7 Jun 1999 12:35:45 +0200 From: Jan Hubicka To: djgpp AT delorie DOT com Subject: Re: scare_mouse() alternatives? References: <8D53104ECD0CD211AF4000A0C9D60AE30140E96A AT probe-2 DOT acclaim-euro DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93i In-Reply-To: <8D53104ECD0CD211AF4000A0C9D60AE30140E96A@probe-2.acclaim-euro.net>; from Shawn Hargreaves on Mon, Jun 07, 1999 at 10:24:02AM +0100 Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, Jun 07, 1999 at 10:24:02AM +0100, Shawn Hargreaves wrote: > 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. In XaoS I am just putting new bitmaps to the screen. In the rest I would like to keep allegro's cursor just to make it working even in cases XaoS is busy by calculating. It can be nice, if allegro had some way to let me draw cursor to bitmap (w/o removing original one on screen), putting bitmap with the cursor to screen and then reventing back to normal mode draving cursor on screen. This can avoid flickering in such bitmap blits. I believe it is quite common situation, so maybe allegro can have some support for this( or does it already have one?) I've done this in the XaoS's direct-X driver and it seems to work nicely.. Honza > > > Shawn Hargreaves.