Pixel format error

Hello,

I came across an invalid format conversion in SDL_MasksToPixelFormatEnum().
Patch attached. I’m not entirely sure it’s the right fix though, but that
solves an image corruption I’m seeing.

Regards,
Frank.
-------------- next part --------------
A non-text attachment was scrubbed…
Name: sdl13-pixel-format-error.diff
Type: text/x-diff
Size: 427 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20110219/2d3e895b/attachment.diff

Try this, it should be a set of complete checks:
http://hg.libsdl.org/SDL/rev/95712d32f0edOn Sat, Feb 19, 2011 at 7:24 AM, Frank Zago wrote:

Hello,

I came across an invalid format conversion in SDL_MasksToPixelFormatEnum().
Patch attached. I’m not entirely sure it’s the right fix though, but that
solves an image corruption I’m seeing.

Regards,
Frank.


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


-Sam Lantinga, Founder and CEO, Galaxy Gameworks

Try this, it should be a set of complete checks:
http://hg.libsdl.org/SDL/rev/95712d32f0ed

Yes, it works. But that patch is not compiling due to missing semicolons.

Frank.On 02/19/2011 04:20 PM, Sam Lantinga wrote:

On Sat, Feb 19, 2011 at 7:24 AM, Frank Zago <@Frank_Zago mailto:Frank_Zago> wrote:

Hello,

I came across an invalid format conversion in SDL_MasksToPixelFormatEnum().
Patch attached. I'm not entirely sure it's the right fix though, but that
solves an image corruption I'm seeing.

Regards,
 Frank.

_______________________________________________
SDL mailing list
SDL at lists.libsdl.org <mailto:SDL at lists.libsdl.org>
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and CEO, Galaxy Gameworks


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

Doh! That’s what happens when I try to code in between laundry and taking
care of girls. :slight_smile:

Fixed, thanks! :)On Sat, Feb 19, 2011 at 3:34 PM, Frank Zago wrote:

On 02/19/2011 04:20 PM, Sam Lantinga wrote:

Try this, it should be a set of complete checks:
http://hg.libsdl.org/SDL/rev/95712d32f0ed

Yes, it works. But that patch is not compiling due to missing semicolons.

Frank.

On Sat, Feb 19, 2011 at 7:24 AM, Frank Zago <frank at zago.net <mailto:frank at zago.net>> wrote:

Hello,

I came across an invalid format conversion in

SDL_MasksToPixelFormatEnum().

Patch attached. I'm not entirely sure it's the right fix though, but

that

solves an image corruption I'm seeing.

Regards,
 Frank.

_______________________________________________
SDL mailing list
SDL at lists.libsdl.org <mailto:SDL at lists.libsdl.org>
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and CEO, Galaxy Gameworks


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


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


-Sam Lantinga, Founder and CEO, Galaxy Gameworks

We have the semicolons. If you want to see them alive again, send four hundred
dollars in unmarked twenties to Wikileaks. Do not attempt to contact the
authorities. Failure to comply will result in the semicolons being forced to
do slave labor in trashy romance novels.

We mean it.

Seriously.

Sort of.On Saturday 19 February 2011 15:34, Frank Zago wrote:

Yes, it works. But that patch is not compiling due to missing semicolons.