# HG changeset patch # User nick # Date 1004982971 0 # Node ID 4ba64e2540422ec8181fa3f8439bc37d0f55d9d5 # Parent fafa73d6d80cb401de16ad95e6f6cc5c48259b57 Fixed rgb32(24)to15 stuff diff -r fafa73d6d80c -r 4ba64e254042 postproc/rgb2rgb.c --- a/postproc/rgb2rgb.c Mon Nov 05 17:46:20 2001 +0000 +++ b/postproc/rgb2rgb.c Mon Nov 05 17:56:11 2001 +0000 @@ -238,7 +238,7 @@ const int g= src[i+1]; const int r= src[i+2]; - d[j]= (b>>3) | ((g&0xF8)<<3) | ((r&0xF8)<<7); + d[j]= (b>>3) | ((g&0xF8)<<2) | ((r&0xF8)<<7); } } @@ -266,7 +266,7 @@ const int g= src[i+1]; const int r= src[i+2]; - d[j]= (b>>3) | ((g&0xF8)<<3) | ((r&0xF8)<<7); + d[j]= (b>>3) | ((g&0xF8)<<2) | ((r&0xF8)<<7); } } diff -r fafa73d6d80c -r 4ba64e254042 postproc/rgb2rgb_template.c --- a/postproc/rgb2rgb_template.c Mon Nov 05 17:46:20 2001 +0000 +++ b/postproc/rgb2rgb_template.c Mon Nov 05 17:56:11 2001 +0000 @@ -238,7 +238,7 @@ const int g= src[i+1]; const int r= src[i+2]; - d[j]= (b>>3) | ((g&0xF8)<<3) | ((r&0xF8)<<7); + d[j]= (b>>3) | ((g&0xF8)<<2) | ((r&0xF8)<<7); } } @@ -266,7 +266,7 @@ const int g= src[i+1]; const int r= src[i+2]; - d[j]= (b>>3) | ((g&0xF8)<<3) | ((r&0xF8)<<7); + d[j]= (b>>3) | ((g&0xF8)<<2) | ((r&0xF8)<<7); } }