Mercurial > sdl-ios-xcode
changeset 1003:ece5ab8acd1c
Wrong RGB24 to RGB16 conversion
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Thu, 02 Dec 2004 23:00:28 +0000 |
parents | 13aa96c76e86 |
children | d1cd674b2ecd |
files | src/video/ataricommon/SDL_atarigl.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/ataricommon/SDL_atarigl.c Thu Dec 02 13:45:29 2004 +0000 +++ b/src/video/ataricommon/SDL_atarigl.c Thu Dec 02 23:00:28 2004 +0000 @@ -711,8 +711,8 @@ for (x=0; x<surface->w; x++) { Uint16 dstcolor; - dstcolor = ((*srccol++)>>9) & (31<<10); - dstcolor |= ((*srccol++)>>6) & (31<<5); + dstcolor = ((*srccol++)<<7) & (31<<10); + dstcolor |= ((*srccol++)<<2) & (31<<5); dstcolor |= ((*srccol++)>>3) & 31; *dstcol++ = dstcolor; } @@ -740,8 +740,8 @@ for (x=0; x<surface->w; x++) { Uint16 dstcolor; - dstcolor = ((*srccol++)>>8) & (31<<11); - dstcolor |= ((*srccol++)>>5) & (63<<5); + dstcolor = ((*srccol++)<<8) & (31<<11); + dstcolor |= ((*srccol++)<<3) & (63<<5); dstcolor |= ((*srccol++)>>3) & 31; *dstcol++ = dstcolor; }