Mercurial > fife-parpg
diff engine/core/video/image.cpp @ 34:d66538926e78
fix getPixelRGBA - it should return r g b and not r b g...
why did everyone use the wrong order instead of fixing the reason? :)
author | spq@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sat, 12 Jul 2008 00:20:26 +0000 |
parents | 4a0efb7baf70 |
children | 90005975cdbb |
line wrap: on
line diff
--- a/engine/core/video/image.cpp Fri Jul 11 15:42:54 2008 +0000 +++ b/engine/core/video/image.cpp Sat Jul 12 00:20:26 2008 +0000 @@ -136,7 +136,7 @@ case 4: pixel = *(Uint32 *)p; } - SDL_GetRGBA(pixel, m_surface->format, r, b, g, a); + SDL_GetRGBA(pixel, m_surface->format, r, g, b, a); } void Image::render(const Rect& rect, unsigned char alpha) {