File: no_fsck_32bit_colors.patch

package info (click to toggle)
libtuxcap 1.4.0.dfsg2-2.1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,176 kB
  • sloc: cpp: 43,203; ansic: 3,095; python: 774; objc: 242; makefile: 100; xml: 87
file content (43 lines) | stat: -rw-r--r-- 1,467 bytes parent folder | download | duplicates (3)
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)