[SDL] can't using video driver
atrix2 at cox.net
Tue Jan 21 21:39:01 PST 2003
i second that! That technique is worth a seconding...
that has saved my butt so many times...and is right now in fact (:
----- Original Message -----
From: "Sam Lantinga" <slouken at devolution.com>
To: <sdl at libsdl.org>
Sent: Tuesday, January 21, 2003 9:32 PM
Subject: Re: [SDL] can't using video driver
> > > hi all,
> > > if compile sdl for nano-x ,must the environment variable
> > > be set? if it does,how to then?
> > > because when running the demos in subdirectory "test",sdl can't be
> > > initialized.
> > > And I found that in the file SDL.c,the return value of
> > > the function 'getenv("SDL_VIDEODRIVER")' is NULL.
> > > how to solve it then??
> > Run the code under the debugger and find out what video driver is
> > being selected, and step into the Nano-X initialization function to
> > find out why it's failing. I've never used Nano-X myself so I don't
> > have any more insights.
> Oh, and if you can't run the code under a debugger for some reason,
> use the tried and true method of sticking printf statements in key
> portions of the code and seeing what's going on that way.
> See ya,
> -Sam Lantinga, Software Engineer, Blizzard Entertainment
> SDL mailing list
> SDL at libsdl.org
More information about the SDL