Re: [sdljava-users] Small patch to SDLVideo.mapRGBA
Status: Beta
Brought to you by:
ivan_ganza
From: Ivan Z. G. <iva...@ya...> - 2005-01-25 02:18:34
|
Thanks for the patch. I've applied it to SDLVideo and CVS has been updated. Glad to be of service ;-) -Ivan/ Flavio Chierichetti wrote: >Hi, > the mapRGBA method switch the green and blue component (the mapRGB >method works well). While the right order should be RGBA, the native >method is called with RBGA. > >This little patch fixes the problem (I took the file from cvs on the >21st of this month): > >457c457 >< return SWIG_SDLVideo.SDL_MapRGBA(format.getSwigPixelFormat(), >(short)r, (short)g, (short)b, (short)a); >--- > > >> return SWIG_SDLVideo.SDL_MapRGBA(format.getSwigPixelFormat(), >> >> >(short)r, (short)b, (short)g, (short)a); > > >Thanks for the excellent work, > Flavio > > > |