[sdljava-users] Small patch to SDLVideo.mapRGBA
Status: Beta
Brought to you by:
ivan_ganza
From: Flavio C. <fl...@li...> - 2005-01-24 09:42:27
|
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 -- Flavio Chierichetti http://lightless.org/ |