Useless bug report ever

I just filled a bug report http://bugzilla.libsdl.org/show_bug.cgi?id=1488

The bug is: Under SDL 2.0, if you try to create a mouse cursor with an alpha channel that is completely blank, you get a black square instead. The details and two small patches to fix the behavior are included. To me, looks like it’s really a bug in Windows. But amazingly, it didn’t happen under SDL 1.2 and I don’t really know why it could be.

Has anyone observed this sort of behavior before? :slight_smile:

I call it the useless bug report ever because, well, if you don’t want to see the cursor, hide it :smiley: But I wonder if having it fixed could be useful if one wants to animate the cursor and one of the frames is blank for any reason.

Hi,

I filed this exact same bug a few weeks ago:

http://bugzilla.libsdl.org/show_bug.cgi?id=1461

We used it to ‘disable’ the cursor with SDL 1.2, since actually disabling
it in Windows kept resetting the mouse position. But after migration to
SDL 2.0, we had to really disable it to work around our workaround. :slight_smile:

DOn Thu, May 3, 2012 at 2:38 AM, Manuel Montoto <g.manu at teleline.es> wrote:

**
I just filled a bug report http://bugzilla.libsdl.org/show_bug.cgi?id=1488

The bug is: Under SDL 2.0, if you try to create a mouse cursor with an
alpha channel that is completely blank, you get a black square instead. The
details and two small patches to fix the behavior are included. To me,
looks like it’s really a bug in Windows. But amazingly, it didn’t happen
under SDL 1.2 and I don’t really know why it could be.

Has anyone observed this sort of behavior before? [image: Smile]

I call it the useless bug report ever because, well, if you don’t want to
see the cursor, hide it [image: Very Happy] But I wonder if having it
fixed could be useful if one wants to animate the cursor and one of the
frames is blank for any reason.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Oh! My mistake, sorry. I made some searches before posting mine, and your’s didn’t appear. Maybe my queries weren’t fortunate enough :stuck_out_tongue:

Well, I think you don’t still need it, but just in case, my patch works for sure :slight_smile:

What I would really want to know is why does this happen. Sounds absolutely like a Windows bug… But why didn’t it fail under 1.2 ? Maybe it’s something related to the type of the window and the renderer trigs the Windows bug?

It’s my understanding that a lot of the mouse routines were re-written for
SDL 1.3/2.0, so that’s probably the source of the issue.
-AlexOn Fri, May 4, 2012 at 11:02 AM, Manuel Montoto <g.manu at teleline.es> wrote:

**
Oh! My mistake, sorry. I made some searches before posting mine, and
your’s didn’t appear. Maybe my queries weren’t fortunate enough [image:
Razz]

Well, I think you don’t still need it, but just in case, my patch works
for sure [image: Smile]

What I would really want to know is why does this happen. Sounds
absolutely like a Windows bug… But why didn’t it fail under 1.2 ? Maybe
it’s something related to the type of the window and the renderer trigs the
Windows bug?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org