Re: [AD] Menus not honoring gui screen |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Sunday 21 August 2005 18:07, Elias Pschernig wrote:
> Things get even worse though, namely if gui_screen is the same as
> _mouse_screen, but both are not screen, then scare_mouse does nothing,
> because of this in scare_mouse:
>
[...]
>
> What is the idea behind this?
The idea behind it is that scare_mouse() does nothing if a hardware cursor
is in use and the mouse is being displayed on the physical screen.
> If I draw the mouse to a memory bitmap,
> then there is just as much reason to hide the cursor during drawing
> operations as there is on the screen.
Yes. Have you checked that it really doesn't?
As an aside, it's a bit silly to asynchronously draw the mouse to a memory
surface. ;)
> But, before I make a patch to
> remove that "if", I better ask here.. I feel there's something I'm
> overlooking.
Yes, removing it probably isn't a good idea for the reason I gave above.
Better make an additional check for the case you mentioned, and maybe
clean up the code a bit ;)
From what I remember, scare_mouse() is quite a mess.
Evert