delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/11/11:44:20

Date: Wed, 11 Jun 1997 10:44:02 -0500 (CDT)
From: Andrew Deren <aderen AT eecs DOT uic DOT edu>
To: "Gautam N. Lad" <gautam AT interlog DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Hiding mouse before drawing not working (Allegro)
In-Reply-To: <5ncmia$ees@news.interlog.com>
Message-ID: <Pine.SUN.3.95.970611104322.10630A-100000@ernie.eecs.uic.edu>
MIME-Version: 1.0

You are probably bliting in a region that mouse is currently drawn.

> Hi,
> I'm making a simple tile/map editor, and I've a grid setup.  When a user clicks on 
> a grid, I do the following (psuedo code): 
> 
> if click is in range
>   freeze_mouse_flag=TRUE; // Allegro extern variable for hiding/show mouse	
>    tblit();  // blit the sprite/tile
>  freeze_mouse_flag=FALSE;
> 
> For some reason, this won't work!  The mouse hides, the bitmap gets drawn, and 
> the mouse becomes visible again.  The drawn bitmap still looks messed up, 'cause 
> the drawn bitmap looks like the mouse is still over it.
> 
> What am I doing wrong?
> 
> Bye!
> 
> ****************************************************
> * Gautam N. Lad                                    *
> *--------------------------------------------------*
> *                                                  *
> * E-Mail    : gautam AT interlog DOT com                  *
> * Website   : http://www.interlog.com/~gautam      *
> *                                                  *
> * OS/2, DOS/Windows, Graphics Gallery, Software,   *
> * Links, Rayzor Editor/2, POV-Ray, TexturEyes,     *
> * POV-PAK and lots lots lots more!!!!!!!           *
> ****************************************************
> 

- Raw text -


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