2 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
3 SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
4 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
5 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
6 IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
7 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
8 FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
9 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
10 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
11 COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
21 draw_ubitmap(int x,int y,grs_bitmap *bm)
24 short *data15 = (short *) bm->bm_data;
26 printf("x,y=%d,%d w,h=%d,%d\n",x,y,bm->bm_w,bm->bm_h);
28 for (yy=0;yy<bm->bm_h;yy++)
30 for (xx=0;xx<bm->bm_w;xx++)
32 gr_vesa_pixel15(x+xx,y+yy,data15[yy*bm->bm_w+xx]);
38 main(int argc,char **argv)
42 ubyte my_palette[256*3];
44 ret = iff_read_bitmap(argv[1],&my_bitmap,BM_RGB15,&my_palette);
46 printf("ret = %d\n",ret);
48 if (ret == IFF_NO_ERROR) {
50 gr_vesa_setmode(0x110);
52 draw_ubitmap(0,0,&my_bitmap);