changeset 2720:4ba64e254042

Fixed rgb32(24)to15 stuff
author nick
date Mon, 05 Nov 2001 17:56:11 +0000
parents fafa73d6d80c
children 352aa62f648d
files postproc/rgb2rgb.c postproc/rgb2rgb_template.c
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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);
 	}
 }
 
--- 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);
 	}
 }