delorie.com/archives/browse.cgi | search |
From: | Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: error on putpixel? |
Organization: | Pin Eight Software http://pineight.8m.com/ |
Message-ID: | <ie96hs4rf7h2sbfu30402b3ndgig8h10hk@4ax.com> |
References: | <20000503144411 DOT 18540 DOT 00001011 AT ng-fo1 DOT aol DOT com> <3910AFD7 DOT 2B5434BE AT home DOT com> |
X-Newsreader: | Forte Agent 1.7/32.534 |
MIME-Version: | 1.0 |
Lines: | 42 |
X-Trace: | +r9wQy/iZR9G12GHeP30H/3+SNCCgN6QRnxpXtyKEXg8cXBO/iW8LNej90wgaPheg9NV/3x/pfCn!wcntrEKZmLBW2naaY9xJs7pmUzPqJszvNxO8u8YCmxm/uqyQ39orOQdRyLjCc7OsAA1Adxjc5bCZ!eZIcl24= |
X-Complaints-To: | abuse AT gte DOT net |
X-Abuse-Info: | Please be sure to forward a copy of ALL headers |
X-Abuse-Info: | Otherwise we will be unable to process your complaint properly |
NNTP-Posting-Date: | Fri, 05 May 2000 19:52:43 GMT |
Distribution: | world |
Date: | Fri, 05 May 2000 19:52:43 GMT |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
On Wed, 03 May 2000 23:05:48 GMT, Robin Johnson <robbat2 AT home DOT com> wrote: >#include <allegro.h> // #include <conio.h> //getch 1. getch() is nonportable. 2. Allegro's key handling is more flexible but just as easy. >int main(void) >{ > allegro_init(); install_timer(); install_keyboard(); > set_color_depth(8); > if(!set_gfx_mode(GFX_AUTODETECT,640,480,0,0)) //nearly all systems support >this > { cprintf("error entering gfx mode!"); //break on error > return(-1); > } > putpixel(screen,21,21,3); // getch(); readkey(); > return(0); >} END_OF_MAIN(); Recent (3.9) versions of Allegro require END_OF_MAIN() to follow the closing brace of the main() function. -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |