Line 0
Link Here
|
|
|
1 |
--- src/canvas_sdl.h 2003-04-26 14:01:42.000000000 -0400 |
2 |
+++ src/canvas_sdl.h 2013-05-13 14:28:04.000000000 -0400 |
3 |
@@ -10,11 +10,11 @@ |
4 |
protected: |
5 |
SDL_Surface *surface; |
6 |
- char *wm_title; |
7 |
- char *wm_class; |
8 |
+ const char *wm_title; |
9 |
+ const char *wm_class; |
10 |
|
11 |
// create the window (either SDL or GLX) |
12 |
virtual int create_window(); |
13 |
public: |
14 |
- CanvasSDL(Scene *s, bool full_screen, int mspf, char *wm_title, char *wm_class); |
15 |
+ CanvasSDL(Scene *s, bool full_screen, int mspf, const char *wm_title, const char *wm_class); |
16 |
virtual ~CanvasSDL() {} |
17 |
|
18 |
--- src/canvas_sdl.cc 2004-02-05 16:58:24.000000000 -0500 |
19 |
+++ src/canvas_sdl.cc 2013-05-13 14:27:03.000000000 -0400 |
20 |
@@ -10,5 +10,5 @@ |
21 |
using namespace std; |
22 |
|
23 |
-CanvasSDL::CanvasSDL(Scene *s, bool fs, int m, char *t, char *c) |
24 |
+CanvasSDL::CanvasSDL(Scene *s, bool fs, int m, const char *t, const char *c) |
25 |
: CanvasBase(s, fs, m), wm_title(t), wm_class(c) |
26 |
{ |
27 |
--- src/vroot.h 2005-12-08 22:07:30.000000000 -0500 |
28 |
+++ src/vroot.h 2013-05-13 14:30:56.000000000 -0400 |
29 |
@@ -82,4 +82,5 @@ |
30 |
#include <X11/Xatom.h> |
31 |
#include <X11/Xlib.h> |
32 |
+#include <stdio.h> /* For sscanf */ |
33 |
|
34 |
static Window |
35 |
@@ -96,7 +97,6 @@ |
36 |
Display *dpy = DisplayOfScreen(screen); |
37 |
Atom __SWM_VROOT = None; |
38 |
- int i; |
39 |
Window rootReturn, parentReturn, *children; |
40 |
- unsigned int numChildren; |
41 |
+ unsigned int i, numChildren; |
42 |
|
43 |
/* first check for a hex or decimal window ID in the environment */ |