updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / cdogs / fixes.diff
blob0625af318087a6cd8d3557732063c433d720bc7b
1 diff -up cdogs-sdl-0.4/src/files.c~ cdogs-sdl-0.4/src/files.c
2 --- cdogs-sdl-0.4/src/files.c~ 2007-08-12 10:26:02.000000000 +0200
3 +++ cdogs-sdl-0.4/src/files.c 2007-08-12 10:26:02.000000000 +0200
4 @@ -340,7 +340,7 @@ int SaveCampaign(const char *filename, T
5 int f;
6 int i;
8 - f = open(filename, O_WRONLY | O_CREAT | O_TRUNC);
9 + f = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0644);
10 if (f >= 0) {
11 i = CAMPAIGN_MAGIC;
12 write(f, &i, sizeof(i));
13 diff -up cdogs-sdl-0.4/src/grafx.c~ cdogs-sdl-0.4/src/grafx.c
14 --- cdogs-sdl-0.4/src/grafx.c~ 2007-07-16 22:01:51.000000000 +0200
15 +++ cdogs-sdl-0.4/src/grafx.c 2007-07-16 22:01:51.000000000 +0200
16 @@ -107,9 +107,9 @@ static int ValidMode(int w, int h)
18 /* These are the default hints as used by the graphics subsystem */
19 int hints[HINT_END] = {
20 - 0, // HINT_FULLSCREEN
21 + 1, // HINT_FULLSCREEN
22 1, // HINT_WINDOW
23 - 1, // HINT_SCALEFACTOR
24 + 2, // HINT_SCALEFACTOR
25 320, // HINT_WIDTH
26 240, // HINT_HEIGHT
27 0 // HINT_FORCEMODE
28 diff -up cdogs-sdl-0.4/src/grafx.c~ cdogs-sdl-0.4/src/grafx.c
29 --- cdogs-sdl-0.4/src/grafx.c~ 2007-07-16 20:36:01.000000000 +0200
30 +++ cdogs-sdl-0.4/src/grafx.c 2007-07-16 20:36:01.000000000 +0200
31 @@ -219,7 +219,7 @@ void ShutDownVideo(void)
32 typedef struct _Pic {
33 short int w;
34 short int h;
35 - char *data;
36 + char data;
37 } Pic;
39 int ReadPics(const char *filename, void **pics, int maxPics,