# HG changeset patch # User Patrice Mandin # Date 1102028428 0 # Node ID ece5ab8acd1c03ef6552c7b5b2773fdd9869b18e # Parent 13aa96c76e86b67e9e1d70f22d3d6ec96282bddd Wrong RGB24 to RGB16 conversion diff -r 13aa96c76e86 -r ece5ab8acd1c src/video/ataricommon/SDL_atarigl.c --- 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; xw; 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; xw; 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; }