Re: [AD] Using system mouse cursor |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> > +/* enable_mouse_mickeys:
> > + * Switches the mouse to warp-mode on platforms that need this
> > + */
> > +void enable_mouse_mickeys(AL_CONST int mode)
> > ...
> > + if (is_same_bitmap(_mouse_screen, screen)) {
> > + show_mouse(NULL);
> > + show_mouse(screen);
> > + }
> > ...
>
> What's the point of that? That would force the mouse to display on the
> screen bitmap even if its currently set to a sub bitmap of the screen or
>
> even an out-of-view VRAM buffer. I don't think it's very good to go
> changing which bitmap the mouse is shown on..
Oops... you're right, that should read
if (is_same_bitmap(_mouse_screen, screen)) {
BITMAP *tmp = _mouse_screen;
show_mouse(NULL);
show_mouse(tmp);
}
We need to reset the mouse drawing in case the driver wants to switch to a
`hardware' cursor.
Evert