Mail Archives: djgpp/1997/06/11/11:44:20
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 -