Hello all,
I have a Lenovo 3000 N100 laptop with a Intel 945GM graphics chip.
The display is 1280x800 only, 24-bit only.
I use linux.
I have tried running several SDL apps in full screen, only to have the
machine display nothing but vertical lines and lock up tight.
For example, any of the nehe example programs at gamedev.net will run
great windowed (640x480x16), but they all crash when switching to full
screen. I can fix the full screen crash by editing the source code as
follows:
/* screen width, height, and bit depth */
#define SCREEN_WIDTH 1280
#define SCREEN_HEIGHT 800
#define SCREEN_BPP 24
where later this is set:
surface = SDL_SetVideoMode( SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_BPP,
videoFlags );
videoFlags = SDL_OPENGL;
videoFlags |= SDL_GL_DOUBLEBUFFER;
videoFlags |= SDL_HWPALETTE;
videoFlags |= SDL_RESIZABLE;
Any other screen resolution or color depth crashes. I guess it is not
sdl’s problem that my machine can only operate at one resolution and
depth, but is there a way I can keep sdl from locking up tight? I’ve
been trying to get ut2004 working by editing the ini files, but so far
no good.
Perhaps there is an environmental variable I can set to “fix” this?
Thanks
Chris