2142
|
1 |
--- sauerbraten/src/engine/main.cpp.orig 2009-09-06 11:52:50.986911992 +0100
|
|
2 |
+++ sauerbraten/src/engine/main.cpp 2009-09-06 11:53:17.014690075 +0100
|
|
3 |
@@ -479,9 +479,9 @@
|
|
4 |
|
|
5 |
COMMAND(screenres, "ii");
|
|
6 |
|
|
7 |
-VARFP(gamma, 30, 100, 300,
|
|
8 |
+VARFP(screen_gamma, 30, 100, 300,
|
300
|
9 |
{
|
2142
|
10 |
- float f = gamma/100.0f;
|
|
11 |
+ float f = screen_gamma/100.0f;
|
|
12 |
if(SDL_SetGamma(f,f,f)==-1)
|
300
|
13 |
{
|
2142
|
14 |
conoutf(CON_ERROR, "Could not set gamma (card/driver doesn't support it?)");
|
|
15 |
@@ -491,7 +491,7 @@
|
300
|
16 |
|
2142
|
17 |
void resetgamma()
|
|
18 |
{
|
|
19 |
- float f = gamma/100.0f;
|
|
20 |
+ float f = screen_gamma/100.0f;
|
|
21 |
if(f==1) return;
|
|
22 |
SDL_SetGamma(1, 1, 1);
|
|
23 |
SDL_SetGamma(f, f, f);
|
|
24 |
--- sauerbraten/src/engine/lensflare.h.orig 2009-09-06 11:52:32.353836453 +0100
|
|
25 |
+++ sauerbraten/src/engine/lensflare.h 2009-09-06 11:53:17.013533617 +0100
|
|
26 |
@@ -1,3 +1,6 @@
|
|
27 |
+#ifdef sun
|
|
28 |
+#undef sun
|
|
29 |
+#endif
|
|
30 |
static struct flaretype
|
|
31 |
{
|
|
32 |
int type; /* flaretex index, 0..5, -1 for 6+random shine */
|
|
33 |
--- sauerbraten/src/engine/movie.cpp.orig 2009-09-06 11:52:43.153800377 +0100
|
|
34 |
+++ sauerbraten/src/engine/movie.cpp 2009-09-06 11:53:17.014149763 +0100
|
|
35 |
@@ -632,7 +632,7 @@
|
|
36 |
|
|
37 |
void cleanup() { DELETEA(sound); maxsize = 0; }
|
|
38 |
};
|
|
39 |
- static queue<soundbuffer, MAXSOUNDBUFFERS> soundbuffers;
|
|
40 |
+ static aqueue<soundbuffer, MAXSOUNDBUFFERS> soundbuffers;
|
|
41 |
static SDL_mutex *soundlock = NULL;
|
|
42 |
|
|
43 |
enum { MAXVIDEOBUFFERS = 2 }; // double buffer
|
|
44 |
@@ -657,7 +657,7 @@
|
|
45 |
|
|
46 |
void cleanup() { DELETEA(video); }
|
|
47 |
};
|
|
48 |
- static queue<videobuffer, MAXVIDEOBUFFERS> videobuffers;
|
|
49 |
+ static aqueue<videobuffer, MAXVIDEOBUFFERS> videobuffers;
|
|
50 |
static uint lastframe = ~0U;
|
300
|
51 |
|
2142
|
52 |
static GLuint scalefb = 0, scaletex[2] = { 0, 0 };
|
|
53 |
--- sauerbraten/src/shared/tools.h.orig 2009-09-06 11:52:15.257870469 +0100
|
|
54 |
+++ sauerbraten/src/shared/tools.h 2009-09-06 11:54:22.540493303 +0100
|
|
55 |
@@ -679,12 +679,12 @@
|
|
56 |
}
|
|
57 |
};
|
|
58 |
|
|
59 |
-template <class T, int SIZE> struct queue
|
|
60 |
+template <class T, int SIZE> struct aqueue
|
|
61 |
{
|
|
62 |
int head, tail, len;
|
|
63 |
T data[SIZE];
|
|
64 |
|
|
65 |
- queue() { clear(); }
|
|
66 |
+ aqueue() { clear(); }
|
|
67 |
|
|
68 |
void clear() { head = tail = len = 0; }
|
|
69 |
|