summaryrefslogtreecommitdiff
path: root/multimedia/mpegedit/files/patch-ai
blob: 3b0835efc17d18baae5101de025892560f841f87 (plain) (blame)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
--- ui/main_win.C.orig	Mon May  8 16:16:44 1995
+++ ui/main_win.C	Thu Feb  3 21:39:37 2000
@@ -137,8 +137,8 @@
 // Call XWMGeometry.  It will decide the actual geometry of the window
 
   int bitmask = XWMGeometry(DispPointer(),DefaultScreen(DispPointer()), geom,
-			    def_geom,BorderWidth,&xsh,&main_x,&main_y,
-			    &main_width,&main_height,&main_gravity);
+			    def_geom,BorderWidth,&xsh,(int *) &main_x,(int *) &main_y,
+			    (int *) &main_width, (int *) &main_height,&main_gravity);
 
 // bitmask will hold the values that need to be changed to reflect the
 // suggestions made by XWMGeometry.  This will be done by the window
@@ -167,7 +167,7 @@
 
 // Have a little chat with the window manager....
 
-  win_name.value = name;
+  win_name.value = (unsigned char *) name;
   win_name.encoding = XA_STRING;
   win_name.format = 8;
   win_name.nitems = strlen(name);
@@ -276,6 +276,7 @@
 
 MainWindow::status MainWindow::event_handler(XEvent *Event)
 {
+#if 0
   switch(Event->type)
     {
     case Expose:
@@ -309,6 +310,7 @@
     default:
       break;
     }
+#endif
   return(okay);
 }
 
@@ -348,7 +350,7 @@
   Window root;
   unsigned int x,y,width,height;
   unsigned int bd_width, depth;
-  XGetGeometry(DispPointer(),WinId(),&root,&x,&y,&width,&height,
+  XGetGeometry(DispPointer(),WinId(),&root,(int *) &x,(int *) &y,&width,&height,
 	       &bd_width,&depth);
   return depth;
 }
@@ -359,7 +361,7 @@
   Window root2;
   unsigned int x,y,width,height;
   unsigned int bd_width, depth;
-  XGetGeometry(DispPointer(),root,&root2,&x,&y,&width,&height,
+  XGetGeometry(DispPointer(),root,&root2,(int *) &x,(int *) &y,&width,&height,
 	       &bd_width,&depth);
   return height;
 }
@@ -370,7 +372,7 @@
   Window root2;
   unsigned int x,y,width,height;
   unsigned int bd_width, depth;
-  XGetGeometry(DispPointer(),root,&root2,&x,&y,&width,&height,
+  XGetGeometry(DispPointer(),root,&root2,(int *) &x, (int *) &y,&width,&height,
 	       &bd_width,&depth);
   return width;
 }