Skip to content

Commit

Permalink
Wrong RGB24 to RGB16 conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
pmandin committed Dec 2, 2004
1 parent fe0142a commit 91a8492
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/video/ataricommon/SDL_atarigl.c
Expand Up @@ -711,8 +711,8 @@ static void CopyShadowRGBTo555(_THIS, SDL_Surface *surface)
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;
}
Expand Down Expand Up @@ -740,8 +740,8 @@ static void CopyShadowRGBTo565(_THIS, SDL_Surface *surface)
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;
}
Expand Down

0 comments on commit 91a8492

Please sign in to comment.