Re: [AD] mouse cursor update

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2008-08-21, Trent Gamblin <trent@xxxxxxxxxx> wrote:
> On Thu, August 21, 2008 8:49 am, Peter Wang said:
> > I just committed an update to the mouse cursors API implementation.
> > I tried to update the Windows port as best as I could, but it
> > doesn't
> > work in wine.  Could someone take a look?
> >
> > As I said in the log message, the WGL driver and Mac port will need
> > to
> > be updated as well.
> >
> > Peter
> 
> I tried a bit to get it working but it's still not. It's strange
> because show_mouse_cursor was working before the change, and after
> the change it looks to me to be exactly the same code.

Turns out we *need* to call SetCursor() every single time we get a
WM_SETCURSOR message, and I had commented that out.

In window_callback we know the active display, but we need to get the
cursor for that display, for SetCursor.  But the display could be a
ALLEGRO_DISPLAY_D3D or a ALLEGRO_DISPLAY_WGL, so I think we need to move
at least the mouse cursor-related fields into a superclass, say
ALLEGRO_DISPLAY_WIN.

Peter





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/