From: Andrew Crabtree Message-Id: <199705290349.AA043517784@typhoon.rose.hp.com> Subject: Re: Problems With Displaying Graphics To: michaelm AT dataplusnet DOT com (Michael M.) Date: Wed, 28 May 1997 20:49:44 PDT Cc: djgpp AT delorie DOT com In-Reply-To: <3.0.32.19970528211007.009146c0@dataplusnet.com>; from "Michael M." at May 28, 97 9:10 pm Precedence: bulk I would try error checking all the calls to see if any fail. > void main(int argc, char *argv[]) ^^^^ should be int > { > BITMAP *buffer; > PALLETE the_pallete; > > start_up(); Where is this code? > display_copyright(); // Displays my name > > set_gfx_mode(GFX_AUTODETECT, 640, 480, 0, 0); // SVGA mode Check for error here > > buffer = create_bitmap(50,50); // Creates a 50 by 50 bitmap > clear(buffer); // Clears newly made bitmap > buffer = load_bitmap(argv[1], the_pallete); //loads the file into buffer check for error here too > set_pallete(the_pallete); > > blit(buffer, screen, 0, 0, 5, 5, 640, 480); //Blits buffer to screen > > readkey(); > destroy_bitmap(buffer); > exit(0); ^^^ return 0 > } > > --=====================_864889811==_ > Content-Type: application/octet-stream; name="0001.pcx" > Content-Transfer-Encoding: base64 > Content-Disposition: attachment; filename="0001.pcx" > > CgUBCAAAAAAxADEASABIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA > AAAAAAAAAAADMgABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA Please don't post binary files. This is mirrored to a mailing list. Andrew