mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 05:20:17 +00:00
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.
This commit is contained in:
parent
d2bfbdb99e
commit
d23b21018c
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
||||
1999-11-10 Michael Fulbright <drmike@redhat.com>
|
||||
|
||||
* src/io-pnm.c (pnm_ascii_read_scanline): Fixed loading of ASCII PNM
|
||||
|
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user