Message-ID: <391222FA.16598669@home.com> From: Robin Johnson Organization: Orbit Computers X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en,af,es MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: putpixel References: <20000504103111 DOT 10456 DOT 00001267 AT ng-bh1 DOT aol DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 28 Date: Fri, 05 May 2000 01:25:08 GMT NNTP-Posting-Host: 24.113.36.103 X-Complaints-To: abuse AT home DOT net X-Trace: news1.rdc1.bc.home.com 957489908 24.113.36.103 (Thu, 04 May 2000 18:25:08 PDT) NNTP-Posting-Date: Thu, 04 May 2000 18:25:08 PDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com hmm, thanks for pointing this out. See what comes from trying to figure out DirectX on stupid MSVC! I gave that up since. gradha AT iname DOT com wrote: > > Buffalo276 wrote: > > Hy, > > > if(!set_gfx_mode(GFX_AUTODETECT,640,480,0,0)) //nearly all systems support > > { printf("error entering gfx mode!"); //break on error > > return(-1); > > } > > That's wrong, allegro returns 0 when it sets the mode, negative if failed, so > your if statement is wrong, you whould write it without '!'. > > Grzegorz Adam Hankiewicz gradha AT iname DOT com - http://gradha.infierno.org > Other web pages: http://glub.ehu.es/ - http://welcome.to/gogosoftware/ -- Robin Hugh Johnson "Robbat2" QTOD: "I used to be an idealist, but I got mugged by reality." E-Mail : robbat2 AT orbis-terrarum DOT net ICQ# : 30269588 or 41961639 Home Page : http://www.orbis-terrarum.net Time Zone : Pacific Daylight (GMT - 8)