summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/io-ras.c
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@redhat.com>1999-11-10 18:47:39 +0000
committerJonathan Blandford <jrb@src.gnome.org>1999-11-10 18:47:39 +0000
commitd23b21018c99bdddc35cbe249f65edeb5510a6f9 (patch)
tree2acef1e5da67de8f9ee21b6e663eeab98f7a0a56 /gdk-pixbuf/io-ras.c
parentd2bfbdb99e600cdfdd3cdf108c4249c3d9216341 (diff)
downloadgtk+-d23b21018c99bdddc35cbe249f65edeb5510a6f9.tar.gz
Now can handle indexing correctly. Patch from Arjan to do so.
1999-11-10 Jonathan Blandford <jrb@redhat.com> * src/io-ras.c (OneLineMapped_file): Now can handle indexing correctly. Patch from Arjan to do so.
Diffstat (limited to 'gdk-pixbuf/io-ras.c')
-rw-r--r--gdk-pixbuf/io-ras.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gdk-pixbuf/io-ras.c b/gdk-pixbuf/io-ras.c
index 0d586a0129..c45f5bb475 100644
--- a/gdk-pixbuf/io-ras.c
+++ b/gdk-pixbuf/io-ras.c
@@ -27,7 +27,9 @@
Known bugs:
* "Indexed" (incl grayscale) sunras files don't work
- * 1 bpp sunrasfiles don't work
+ ( 1999/11/10 - Fixed for non-progressive loading )
+ * 1 bpp sunrasfiles don't work yet
+ * Compressed rasterfiles don't work yet
*/
@@ -146,9 +148,9 @@ static void OneLineMapped_file(FILE * f, guint Width, guchar * pixels,
(void) fread(&DummyByte, 1, 1, f);
X = 0;
while (X < Width) {
- pixels[X * 3] = Map[buffer[X]*3];
- pixels[X * 3+1] = Map[buffer[X]*3];
- pixels[X * 3+2] = Map[buffer[X]*3];
+ pixels[X * 3] = Map[buffer[X]];
+ pixels[X * 3+1] = Map[buffer[X]+256];
+ pixels[X * 3+2] = Map[buffer[X]+512];
X++;
}