Mail Archives: djgpp/2000/05/04/21:07:42
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 <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/
--
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)
- Raw text -