delorie.com/archives/browse.cgi | search |
From: | gradha AT iname DOT com |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: putpixel |
Date: | Fri, 5 May 2000 00:05:13 +0200 |
Organization: | Telefonica Transmision de Datos |
Lines: | 13 |
Message-ID: | <p6sse8.h05.ln@pedos.es> |
References: | <20000504103111 DOT 10456 DOT 00001267 AT ng-bh1 DOT aol DOT com> |
NNTP-Posting-Host: | infon220.jet.es |
User-Agent: | tin/pre-1.4-981002 ("Phobia") (UNIX) (Linux/2.2.12 (i686)) |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Buffalo276 <buffalo276 AT aol DOT com> 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |