[Rawstudio-dev] [PATCH] Fix non optimizedgreenish tint loading
Edouard Gomez
ed.gomez at free.fr
Tue Sep 26 23:16:20 CEST 2006
Edouard Gomez (ed.gomez at free.fr) wrote:
> Hope it helps find a quick fix :-)
Seems like i found it. += operator seems not to be ok inside []
operator.
diff -r 6cb8a56772a3 src/rawstudio.c
--- a/src/rawstudio.c Tue Sep 26 19:47:05 2006 +0000
+++ b/src/rawstudio.c Tue Sep 26 23:12:42 2006 +0200
@@ -839,7 +839,8 @@ rs_photo_open_dcraw(const gchar *filenam
register gint r,g,b;
r = (src[srcoffset++] - raw->black)<<shift;
g = (src[srcoffset++] - raw->black)<<shift;
- b = (src[srcoffset+=2] - raw->black)<<shift;
+ b = (src[srcoffset++] - raw->black)<<shift;
+ srcoffset++;
_CLAMP65535_TRIPLET(r, g, b);
buffer[destoffset++] = r;
buffer[destoffset++] = g;
--
Edouard Gomez
More information about the Rawstudio-dev
mailing list