home *** CD-ROM | disk | FTP | other *** search
- /***********************************************************
- * Copyright (c) 1987 *
- * by CompuServe Inc, Columbus, Ohio. All Rights Reserved *
- ***********************************************************/
-
- /*
- * ABSTRACT:
- *
- * ENVIRONMENT: AmigaDOS
- *
- * AUTHOR: Steve Wilhite, CREATION DATE: 12-Mar-87
- *
- * REVISION HISTORY:
- *
- */
-
- #include <exec/types.h>
- #include <intuition/intuition.h>
- #include <stdio.h>
-
- /*
- * IMPORTS:
- */
-
- extern APTR OpenLibrary();
- extern APTR OpenScreen();
- extern APTR OpenWindow();
- extern APTR GetMsg();
- extern void LoadRGB4();
-
- /*
- * EXPORTS:
- */
-
- struct IntuitionBase *IntuitionBase;
- struct GfxBase *GfxBase;
-
- /*
- * PRIVATE:
- */
-
- static void Terminate();
-
- static UWORD colorTable[32];
- static struct ViewPort *vp;
- static struct RastPort *rp;
- static struct Screen *Screen;
- static struct Window *Window;
- static struct IntuiMessage *Msg;
- static UWORD Class, Code;
-
- static struct NewScreen NewScreen =
- {
- 0, 0, 0, 0, 0, 0, 1, 0, CUSTOMSCREEN, NULL, NULL, NULL, NULL
- };
-
- static struct NewWindow NewWindow =
- {
- 0, 0, 0, 0, 0, 1,
- CLOSEWINDOW,
- ACTIVATE | BORDERLESS | WINDOWCLOSE,
- NULL, NULL, NULL, NULL, NULL,
- 320, 200, 640, 400,
- CUSTOMSCREEN
- };
-
- #define buffer_size 4096
- #define INTUITION_REV 0
- #define GRAPHICS_REV 0
-
-
- static int
- input_file = 0,
- bytes_unread,
- palette[16],
- backdrop_width, backdrop_height,
- fill_color,
- left_edge, top_edge, right_edge, bottom_edge,
- image_width, image_height,
- bit_planes,
- have_color_map, interlaced_mode,
- row, col,
- old_color = -1,
- plane[4],
- screen_width = 320, screen_height = 200,
- base_row[4] = {0, 4, 2, 1 },
- row_disp[4] = {8, 8, 4, 2 },
- interlace_pass,
- num_colors;
-
- static char
- signature[] = "GIF87a";
-
- static unsigned char
- input_buffer[buffer_size],
- *input_ptr;
-
-
- static int read_byte()
- /*
- * Function:
- * Read the next byte from the input file.
- *
- * Returns:
- * 0 .. 255 the byte
- * -1 end of file
- * -4 read error
- GIFfy2 + Ü8 BJ¢÷⌠D ÿ ╥xαD└─ Pp àÇΓUöp@:å'É£≤πo╔; 4H ! I╛éXα@ à @R<└D+ H&%sΓ╩ƒ69╫ └ çÆU X¥ DH Z╤4 ¿"á@hå@Ѽó!S+