1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
# Copyright (C) 2009 Evgeni Golov <sargentd@die-welt.net>
# Distributed under the same license as the software. See debian/copyright.
--- libtuxcap-1.4.0.orig/tuxcap/lib/SexyAppBase.cpp
+++ libtuxcap-1.4.0/tuxcap/lib/SexyAppBase.cpp
@@ -264,7 +264,7 @@
mExitToTop = false;
mWidth = 640;
mHeight = 480;
- mFullscreenBits = 32; //FIXME
+ mFullscreenBits = 0; //FIXME
mIsWindowed = true;
mIsPhysWindowed = true;
mFullScreenWindow = false;
@@ -6172,22 +6172,22 @@
if (mDDInterface->mIs3D) {
//FIXME hardcoded values
- SDL_GL_SetAttribute( SDL_GL_RED_SIZE, 8 );
- SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, 8 );
- SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, 8 );
- SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 8 );
+ SDL_GL_SetAttribute( SDL_GL_RED_SIZE, 5 );
+ SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, 5 );
+ SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, 5 );
+ SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 16 );
SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
if (surface != NULL) {
SDL_FreeSurface(surface);
}
- surface = SDL_SetVideoMode(mWidth,mHeight,32, SDL_OPENGL);
+ surface = SDL_SetVideoMode(mWidth,mHeight,0, SDL_OPENGL);
}
else {
if (surface != NULL) {
SDL_FreeSurface(surface);
}
- surface = SDL_SetVideoMode(mWidth,mHeight,32, SDL_DOUBLEBUF | SDL_HWSURFACE);
+ surface = SDL_SetVideoMode(mWidth,mHeight,0, SDL_DOUBLEBUF | SDL_HWSURFACE);
}
if (surface == NULL)
|