1 |
mr_bones_ 09/12/31 23:02:27 |
2 |
|
3 |
Added: xshipwars-2.6.1-build.patch |
4 |
xshipwars-2.6.1-64bit.patch |
5 |
Log: |
6 |
version bump (bug #292052) |
7 |
(Portage version: 2.1.6.13/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 games-action/xshipwars/files/xshipwars-2.6.1-build.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-action/xshipwars/files/xshipwars-2.6.1-build.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-action/xshipwars/files/xshipwars-2.6.1-build.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: xshipwars-2.6.1-build.patch |
16 |
=================================================================== |
17 |
--- client/Makefile.install.UNIX |
18 |
+++ client/Makefile.install.UNIX |
19 |
@@ -11,9 +11,9 @@ |
20 |
# |
21 |
|
22 |
INSTALL = install |
23 |
-INSTBINFLAGS = -m 0755 -s |
24 |
+INSTBINFLAGS = -m 0755 |
25 |
INSTUIDFLAGS = -m 4755 |
26 |
-INSTLIBFLAGS = -m 0755 -s |
27 |
+INSTLIBFLAGS = -m 0755 |
28 |
INSTINCFLAGS = -m 0644 |
29 |
INSTMANFLAGS = -m 0644 |
30 |
INSTCFGFLAGS = -m 0644 |
31 |
@@ -26,8 +26,10 @@ |
32 |
MKDIRFLAGS = -p |
33 |
|
34 |
|
35 |
-GAMES_DIR = $(PREFIX)/games |
36 |
-XSW_DIR = $(PREFIX)/share/games/xshipwars |
37 |
+BINDIR = $(PREFIX)/games |
38 |
+GAMES_DIR = $(DESTDIR)$(BINDIR) |
39 |
+DATADIR = $(PREFIX)/share/games |
40 |
+XSW_DIR = $(DESTDIR)$(DATADIR)/xshipwars |
41 |
XSW_ETC_DIR = $(XSW_DIR)/etc |
42 |
|
43 |
XSW_CFG_FILE = xsw.ini |
44 |
--- monitor/Makefile.install.UNIX |
45 |
+++ monitor/Makefile.install.UNIX |
46 |
@@ -27,8 +27,10 @@ |
47 |
MKDIR = mkdir |
48 |
MKDIRFLAGS = -p |
49 |
|
50 |
-GAMES_DIR = $(PREFIX)/games |
51 |
-XSW_DIR = $(PREFIX)/share/games/xshipwars |
52 |
+BINDIR = $(PREFIX)/games |
53 |
+GAMES_DIR = $(DESTDIR)$(BINDIR) |
54 |
+DATADIR = $(PREFIX)/share/games |
55 |
+XSW_DIR = $(DESTDIR)$(DATADIR)/xshipwars |
56 |
MONITOR_IMAGES_DIR = $(XSW_DIR)/images/monitor |
57 |
|
58 |
HR = "-------------------------------------------------------------------------" |
59 |
--- server/Makefile.install.UNIX |
60 |
+++ server/Makefile.install.UNIX |
61 |
@@ -29,7 +29,7 @@ |
62 |
MKDIRFLAGS = -p |
63 |
|
64 |
|
65 |
-SWSERV_BASE_DIR = $(PREFIX)/swserv |
66 |
+SWSERV_BASE_DIR = $(DESTDIR)$(PREFIX)/swserv |
67 |
|
68 |
SWSERV_BIN_DIR = $(SWSERV_BASE_DIR)/bin |
69 |
SWSERV_DB_DIR = $(SWSERV_BASE_DIR)/db |
70 |
--- unvedit/Makefile.install.UNIX |
71 |
+++ unvedit/Makefile.install.UNIX |
72 |
@@ -26,8 +26,10 @@ |
73 |
MKDIR = mkdir |
74 |
MKDIRFLAGS = -p |
75 |
|
76 |
-GAMES_BIN_DIR = $(PREFIX)/games |
77 |
-XSW_DATA_DIR = $(PREFIX)/share/games/xshipwars |
78 |
+BINDIR = $(PREFIX)/games |
79 |
+GAMES_BIN_DIR = $(DESTDIR)$(BINDIR) |
80 |
+DATADIR = $(PREFIX)/share/games |
81 |
+XSW_DATA_DIR = $(DESTDIR)$(DATADIR)/xshipwars |
82 |
UNVEDIT_IMAGES_DIR = $(XSW_DATA_DIR)/images/unvedit |
83 |
|
84 |
HR = "-------------------------------------------------------------------------" |
85 |
--- client/xsw.h.old 2007-07-06 08:02:07.000000000 +0200 |
86 |
+++ client/xsw.h 2007-07-06 08:04:05.000000000 +0200 |
87 |
@@ -135,10 +135,10 @@ |
88 |
#define XSW_DEF_SW_SERVER_DIR CWD_STR |
89 |
#else |
90 |
#define XSW_DEF_LOCAL_DATA_DIR ".shipwars" |
91 |
-#define XSW_DEF_GLOBAL_DATA_DIR PREFIX "/share/games/xshipwars" |
92 |
-#define XSW_DEF_GLOBAL_IMAGES_DIR PREFIX "/share/games/xshipwars/images" |
93 |
-#define XSW_DEF_GLOBAL_SOUNDS_DIR PREFIX "/share/games/xshipwars/sounds" |
94 |
-#define XSW_DEF_GLOBAL_ETC_DIR PREFIX "/share/games/xshipwars/etc" |
95 |
+#define XSW_DEF_GLOBAL_DATA_DIR "@GENTOO_DATADIR@" |
96 |
+#define XSW_DEF_GLOBAL_IMAGES_DIR "@GENTOO_DATADIR@/images" |
97 |
+#define XSW_DEF_GLOBAL_SOUNDS_DIR "@GENTOO_DATADIR@/sounds" |
98 |
+#define XSW_DEF_GLOBAL_ETC_DIR "@GENTOO_DATADIR@/etc" |
99 |
#define XSW_DEF_SW_SERVER_DIR "/home/swserv" |
100 |
#endif |
101 |
|
102 |
|
103 |
|
104 |
|
105 |
1.1 games-action/xshipwars/files/xshipwars-2.6.1-64bit.patch |
106 |
|
107 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-action/xshipwars/files/xshipwars-2.6.1-64bit.patch?rev=1.1&view=markup |
108 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-action/xshipwars/files/xshipwars-2.6.1-64bit.patch?rev=1.1&content-type=text/plain |
109 |
|
110 |
Index: xshipwars-2.6.1-64bit.patch |
111 |
=================================================================== |
112 |
diff -ru xsw-2.6.1.orig/client/keymapwin.cpp xsw-2.6.1/client/keymapwin.cpp |
113 |
--- xsw-2.6.1.orig/client/keymapwin.cpp 2008-06-23 19:00:00.000000000 -0400 |
114 |
+++ xsw-2.6.1/client/keymapwin.cpp 2009-12-30 21:30:58.651780783 -0500 |
115 |
@@ -683,7 +683,7 @@ |
116 |
*/ |
117 |
static void KeymapWinDrawCB(void *widget, void *data) |
118 |
{ |
119 |
- const int amount = (int)data; |
120 |
+ const int amount = (int)(size_t)data; |
121 |
xsw_keymap_win_struct *kmw = XSW_KEYMAP_WIN(widget); |
122 |
if(kmw == NULL) |
123 |
return; |
124 |
diff -ru xsw-2.6.1.orig/client/sound.cpp xsw-2.6.1/client/sound.cpp |
125 |
--- xsw-2.6.1.orig/client/sound.cpp 2008-06-23 19:00:00.000000000 -0400 |
126 |
+++ xsw-2.6.1/client/sound.cpp 2009-12-30 21:34:44.306792788 -0500 |
127 |
@@ -90,7 +90,7 @@ |
128 |
#ifdef ESD_H |
129 |
/* Connect to the sound server */ |
130 |
snd->con_data = (void *)esd_open_sound(NULL); |
131 |
- if((int)snd->con_data < 0) |
132 |
+ if((int)(size_t)snd->con_data < 0) |
133 |
{ |
134 |
snd->con_data = NULL; |
135 |
return(-1); |
136 |
@@ -287,14 +287,14 @@ |
137 |
"xsw:%s", |
138 |
path |
139 |
); |
140 |
- id = esd_sample_getid((int)snd->con_data, esd_sndobj_path); |
141 |
+ id = esd_sample_getid((int)(size_t)snd->con_data, esd_sndobj_path); |
142 |
free(esd_sndobj_path); |
143 |
|
144 |
if(id < 0) |
145 |
{ |
146 |
fprintf(stderr,"(CACHING NOW)\n"); |
147 |
id = esd_file_cache( |
148 |
- (int)snd->con_data, |
149 |
+ (int)(size_t)snd->con_data, |
150 |
"xsw", |
151 |
path |
152 |
); |
153 |
@@ -309,11 +309,11 @@ |
154 |
if(id > -1) |
155 |
{ |
156 |
/* Stop the existing play (if any) */ |
157 |
- esd_sample_stop((int)snd->con_data, id); |
158 |
+ esd_sample_stop((int)(size_t)snd->con_data, id); |
159 |
|
160 |
/* Set the volume */ |
161 |
if(esd_set_default_sample_pan( |
162 |
- (int)snd->con_data, |
163 |
+ (int)(size_t)snd->con_data, |
164 |
id, |
165 |
(int)(vol_left * ESD_VOLUME_BASE), |
166 |
(int)(vol_right * ESD_VOLUME_BASE) |
167 |
@@ -322,7 +322,7 @@ |
168 |
fprintf(stderr, "esd_set_default_sample_pan() failed\n"); |
169 |
|
170 |
/* Start playing */ |
171 |
- if(esd_sample_play((int)snd->con_data, id) < 0) |
172 |
+ if(esd_sample_play((int)(size_t)snd->con_data, id) < 0) |
173 |
{ |
174 |
fprintf(stderr, "esd_sample_play() failed\n"); |
175 |
} |
176 |
@@ -378,7 +378,7 @@ |
177 |
|
178 |
case SOUND_SERVER_TYPE_ESOUND: |
179 |
#ifdef ESD_H |
180 |
- esd_sample_stop((int)snd->con_data, (int)playid); |
181 |
+ esd_sample_stop((int)(size_t)snd->con_data, (int)playid); |
182 |
#endif /* ESD_H */ |
183 |
break; |
184 |
|
185 |
@@ -467,7 +467,7 @@ |
186 |
|
187 |
case SOUND_SERVER_TYPE_ESOUND: |
188 |
#ifdef ESD_H |
189 |
- id = esd_file_cache((int)snd->con_data, "xsw", path); |
190 |
+ id = esd_file_cache((int)(size_t)snd->con_data, "xsw", path); |
191 |
if(id < 0) |
192 |
{ |
193 |
fprintf(stderr, "esd_file_cache() failed\n"); |
194 |
@@ -481,8 +481,8 @@ |
195 |
// (int)snd->bg_music_playid = id; // Dan S: forbidden in ansi c++. Cast rvalue not lvalue. |
196 |
snd->bg_music_playid = (void *)(&id); |
197 |
if(esd_sample_loop( |
198 |
- (int)snd->con_data, |
199 |
- (int)snd->bg_music_playid) |
200 |
+ (int)(size_t)snd->con_data, |
201 |
+ (int)(size_t)snd->bg_music_playid) |
202 |
< 0 |
203 |
) |
204 |
{ |
205 |
@@ -540,14 +540,14 @@ |
206 |
if(snd->bg_music_playid != NULL) |
207 |
{ |
208 |
if(esd_sample_stop( |
209 |
- (int)snd->con_data, |
210 |
- (int)snd->bg_music_playid) |
211 |
+ (int)(size_t)snd->con_data, |
212 |
+ (int)(size_t)snd->bg_music_playid) |
213 |
< 0 |
214 |
) |
215 |
fprintf(stderr, "esd_sample_stop() failed\n"); |
216 |
if(esd_sample_free( |
217 |
- (int)snd->con_data, |
218 |
- (int)snd->bg_music_playid) |
219 |
+ (int)(size_t)snd->con_data, |
220 |
+ (int)(size_t)snd->bg_music_playid) |
221 |
< 0 |
222 |
) |
223 |
fprintf(stderr, "esd_sample_stop() failed\n"); |
224 |
@@ -688,7 +688,7 @@ |
225 |
if(snd->con_data != NULL) |
226 |
{ |
227 |
SoundStopBackgroundMusic(snd); |
228 |
- esd_close((int)snd->con_data); |
229 |
+ esd_close((int)(size_t)snd->con_data); |
230 |
snd->con_data = NULL; |
231 |
} |
232 |
#endif /* ESD_H */ |
233 |
diff -ru xsw-2.6.1.orig/client/vsmenuwin.cpp xsw-2.6.1/client/vsmenuwin.cpp |
234 |
--- xsw-2.6.1.orig/client/vsmenuwin.cpp 2008-06-23 19:00:00.000000000 -0400 |
235 |
+++ xsw-2.6.1/client/vsmenuwin.cpp 2009-12-30 21:35:47.549785477 -0500 |
236 |
@@ -377,13 +377,13 @@ |
237 |
vsmw->freeze_count++; |
238 |
|
239 |
pulist = &vsmw->type_pulist; |
240 |
- item->type = (int)PUListItemGetData( |
241 |
+ item->type = (int)(size_t)PUListItemGetData( |
242 |
pulist, |
243 |
PUListGetSelItem(pulist) |
244 |
); |
245 |
|
246 |
pulist = &vsmw->action_pulist; |
247 |
- item->action = (int)PUListItemGetData( |
248 |
+ item->action = (int)(size_t)PUListItemGetData( |
249 |
pulist, |
250 |
PUListGetSelItem(pulist) |
251 |
); |
252 |
@@ -564,7 +564,7 @@ |
253 |
*/ |
254 |
static void VSMWDrawCB(void *widget, void *data) |
255 |
{ |
256 |
- const int amount = (int)data; |
257 |
+ const int amount = (int)(size_t)data; |
258 |
xsw_vsmenu_win_struct *vsmw = XSW_VSMENU_WIN(widget); |
259 |
if(vsmw == NULL) |
260 |
return; |
261 |
@@ -592,7 +592,7 @@ |
262 |
if(vsmw->freeze_count > 0) |
263 |
return; |
264 |
|
265 |
- action = (int)PUListItemGetData(pulist, item_num); |
266 |
+ action = (int)(size_t)PUListItemGetData(pulist, item_num); |
267 |
for(i = 0; i < n; i++) |
268 |
{ |
269 |
v = &(vlist[i]); |
270 |
diff -ru xsw-2.6.1.orig/client/wcheckbutton.cpp xsw-2.6.1/client/wcheckbutton.cpp |
271 |
--- xsw-2.6.1.orig/client/wcheckbutton.cpp 2008-06-23 19:00:00.000000000 -0400 |
272 |
+++ xsw-2.6.1/client/wcheckbutton.cpp 2009-12-30 21:36:00.024941571 -0500 |
273 |
@@ -63,7 +63,7 @@ |
274 |
*/ |
275 |
static void CBtnDrawCB(void *widget, void *data) |
276 |
{ |
277 |
- int amount = (int)data; |
278 |
+ int amount = (int)(size_t)data; |
279 |
check_button_struct *cb = (check_button_struct *)widget; |
280 |
if(cb == NULL) |
281 |
return; |
282 |
diff -ru xsw-2.6.1.orig/client/wclist.cpp xsw-2.6.1/client/wclist.cpp |
283 |
--- xsw-2.6.1.orig/client/wclist.cpp 2008-06-23 19:00:00.000000000 -0400 |
284 |
+++ xsw-2.6.1/client/wclist.cpp 2009-12-30 21:36:19.867780925 -0500 |
285 |
@@ -180,7 +180,7 @@ |
286 |
*/ |
287 |
static void CListDrawCB(void *widget, void *data) |
288 |
{ |
289 |
- int draw_amount = (int)data; |
290 |
+ int draw_amount = (int)(size_t)data; |
291 |
clist_struct *clist = (clist_struct *)widget; |
292 |
if(clist == NULL) |
293 |
return; |
294 |
diff -ru xsw-2.6.1.orig/client/wfilebrowser.cpp xsw-2.6.1/client/wfilebrowser.cpp |
295 |
--- xsw-2.6.1.orig/client/wfilebrowser.cpp 2008-06-23 19:00:00.000000000 -0400 |
296 |
+++ xsw-2.6.1/client/wfilebrowser.cpp 2009-12-30 21:48:53.840781232 -0500 |
297 |
@@ -590,7 +590,7 @@ |
298 |
*/ |
299 |
static void FBrowserDrawCB(void *widget, void *data) |
300 |
{ |
301 |
- int draw_amount = (int)data; |
302 |
+ int draw_amount = (int)(size_t)data; |
303 |
fb_struct *fb = (fb_struct *)widget; |
304 |
if(fb == NULL) |
305 |
return; |
306 |
diff -ru xsw-2.6.1.orig/client/wpopuplist.cpp xsw-2.6.1/client/wpopuplist.cpp |
307 |
--- xsw-2.6.1.orig/client/wpopuplist.cpp 2008-06-23 19:00:00.000000000 -0400 |
308 |
+++ xsw-2.6.1/client/wpopuplist.cpp 2009-12-30 21:52:55.864780577 -0500 |
309 |
@@ -311,7 +311,7 @@ |
310 |
*/ |
311 |
static void PUListDrawCB(void *widget, void *data) |
312 |
{ |
313 |
- int amount = (int)data; |
314 |
+ int amount = (int)(size_t)data; |
315 |
popup_list_struct *list = (popup_list_struct *)widget; |
316 |
if(list == NULL) |
317 |
return; |
318 |
diff -ru xsw-2.6.1.orig/client/wprompt.cpp xsw-2.6.1/client/wprompt.cpp |
319 |
--- xsw-2.6.1.orig/client/wprompt.cpp 2008-06-23 19:00:00.000000000 -0400 |
320 |
+++ xsw-2.6.1/client/wprompt.cpp 2009-12-30 21:53:13.222906280 -0500 |
321 |
@@ -157,7 +157,7 @@ |
322 |
*/ |
323 |
static void PromptDrawCB(void *widget, void *data) |
324 |
{ |
325 |
- int amount = (int)data; |
326 |
+ int amount = (int)(size_t)data; |
327 |
prompt_struct *prompt = (prompt_struct *)widget; |
328 |
if(prompt == NULL) |
329 |
return; |
330 |
diff -ru xsw-2.6.1.orig/client/wscrollbar.cpp xsw-2.6.1/client/wscrollbar.cpp |
331 |
--- xsw-2.6.1.orig/client/wscrollbar.cpp 2008-06-23 19:00:00.000000000 -0400 |
332 |
+++ xsw-2.6.1/client/wscrollbar.cpp 2009-12-30 21:53:42.093781356 -0500 |
333 |
@@ -130,7 +130,7 @@ |
334 |
static void SBarScrollTimeoutCB(void *widget, void *data) |
335 |
{ |
336 |
int prev_x_pos, prev_y_pos; |
337 |
- int op = (int)data; |
338 |
+ int op = (int)(size_t)data; |
339 |
scroll_bar_struct *sb = (scroll_bar_struct *)widget; |
340 |
if(sb == NULL) |
341 |
return; |
342 |
diff -ru xsw-2.6.1.orig/monitor/mon.cpp xsw-2.6.1/monitor/mon.cpp |
343 |
--- xsw-2.6.1.orig/monitor/mon.cpp 2008-06-23 19:00:00.000000000 -0400 |
344 |
+++ xsw-2.6.1/monitor/mon.cpp 2009-12-30 22:26:15.505784790 -0500 |
345 |
@@ -286,7 +286,7 @@ |
346 |
|
347 |
static void MonDrawCB(void *widget, void *data) |
348 |
{ |
349 |
- int amount = (int)data; |
350 |
+ int amount = (int)(size_t)data; |
351 |
monitor_struct *m = MONITOR(widget); |
352 |
if(m == NULL) |
353 |
return; |
354 |
diff -ru xsw-2.6.1.orig/monitor/wcheckbutton.cpp xsw-2.6.1/monitor/wcheckbutton.cpp |
355 |
--- xsw-2.6.1.orig/monitor/wcheckbutton.cpp 2008-06-23 19:00:00.000000000 -0400 |
356 |
+++ xsw-2.6.1/monitor/wcheckbutton.cpp 2009-12-30 21:36:00.024941571 -0500 |
357 |
@@ -63,7 +63,7 @@ |
358 |
*/ |
359 |
static void CBtnDrawCB(void *widget, void *data) |
360 |
{ |
361 |
- int amount = (int)data; |
362 |
+ int amount = (int)(size_t)data; |
363 |
check_button_struct *cb = (check_button_struct *)widget; |
364 |
if(cb == NULL) |
365 |
return; |
366 |
diff -ru xsw-2.6.1.orig/monitor/wclist.cpp xsw-2.6.1/monitor/wclist.cpp |
367 |
--- xsw-2.6.1.orig/monitor/wclist.cpp 2008-06-23 19:00:00.000000000 -0400 |
368 |
+++ xsw-2.6.1/monitor/wclist.cpp 2009-12-30 21:36:19.867780925 -0500 |
369 |
@@ -180,7 +180,7 @@ |
370 |
*/ |
371 |
static void CListDrawCB(void *widget, void *data) |
372 |
{ |
373 |
- int draw_amount = (int)data; |
374 |
+ int draw_amount = (int)(size_t)data; |
375 |
clist_struct *clist = (clist_struct *)widget; |
376 |
if(clist == NULL) |
377 |
return; |
378 |
diff -ru xsw-2.6.1.orig/monitor/wfilebrowser.cpp xsw-2.6.1/monitor/wfilebrowser.cpp |
379 |
--- xsw-2.6.1.orig/monitor/wfilebrowser.cpp 2008-06-23 19:00:00.000000000 -0400 |
380 |
+++ xsw-2.6.1/monitor/wfilebrowser.cpp 2009-12-30 21:48:53.840781232 -0500 |
381 |
@@ -590,7 +590,7 @@ |
382 |
*/ |
383 |
static void FBrowserDrawCB(void *widget, void *data) |
384 |
{ |
385 |
- int draw_amount = (int)data; |
386 |
+ int draw_amount = (int)(size_t)data; |
387 |
fb_struct *fb = (fb_struct *)widget; |
388 |
if(fb == NULL) |
389 |
return; |
390 |
diff -ru xsw-2.6.1.orig/monitor/wpopuplist.cpp xsw-2.6.1/monitor/wpopuplist.cpp |
391 |
--- xsw-2.6.1.orig/monitor/wpopuplist.cpp 2008-06-23 19:00:00.000000000 -0400 |
392 |
+++ xsw-2.6.1/monitor/wpopuplist.cpp 2009-12-30 21:52:55.864780577 -0500 |
393 |
@@ -311,7 +311,7 @@ |
394 |
*/ |
395 |
static void PUListDrawCB(void *widget, void *data) |
396 |
{ |
397 |
- int amount = (int)data; |
398 |
+ int amount = (int)(size_t)data; |
399 |
popup_list_struct *list = (popup_list_struct *)widget; |
400 |
if(list == NULL) |
401 |
return; |
402 |
diff -ru xsw-2.6.1.orig/monitor/wprompt.cpp xsw-2.6.1/monitor/wprompt.cpp |
403 |
--- xsw-2.6.1.orig/monitor/wprompt.cpp 2008-06-23 19:00:00.000000000 -0400 |
404 |
+++ xsw-2.6.1/monitor/wprompt.cpp 2009-12-30 21:53:13.222906280 -0500 |
405 |
@@ -157,7 +157,7 @@ |
406 |
*/ |
407 |
static void PromptDrawCB(void *widget, void *data) |
408 |
{ |
409 |
- int amount = (int)data; |
410 |
+ int amount = (int)(size_t)data; |
411 |
prompt_struct *prompt = (prompt_struct *)widget; |
412 |
if(prompt == NULL) |
413 |
return; |
414 |
diff -ru xsw-2.6.1.orig/monitor/wscrollbar.cpp xsw-2.6.1/monitor/wscrollbar.cpp |
415 |
--- xsw-2.6.1.orig/monitor/wscrollbar.cpp 2008-06-23 19:00:00.000000000 -0400 |
416 |
+++ xsw-2.6.1/monitor/wscrollbar.cpp 2009-12-30 21:53:42.093781356 -0500 |
417 |
@@ -130,7 +130,7 @@ |
418 |
static void SBarScrollTimeoutCB(void *widget, void *data) |
419 |
{ |
420 |
int prev_x_pos, prev_y_pos; |
421 |
- int op = (int)data; |
422 |
+ int op = (int)(size_t)data; |
423 |
scroll_bar_struct *sb = (scroll_bar_struct *)widget; |
424 |
if(sb == NULL) |
425 |
return; |
426 |
diff -ru xsw-2.6.1.orig/unvedit/ecow.cpp xsw-2.6.1/unvedit/ecow.cpp |
427 |
--- xsw-2.6.1.orig/unvedit/ecow.cpp 2008-06-23 19:00:00.000000000 -0400 |
428 |
+++ xsw-2.6.1/unvedit/ecow.cpp 2009-12-30 22:26:04.514785056 -0500 |
429 |
@@ -428,7 +428,7 @@ |
430 |
strncpy(prod->name, s, sizeof(prod->name)); |
431 |
prod->name[sizeof(prod->name) - 1] = '\0'; |
432 |
} |
433 |
- prod->ocs_code = (int)PUListItemGetData(pulist, i); |
434 |
+ prod->ocs_code = (int)(size_t)PUListItemGetData(pulist, i); |
435 |
prod->sell_price = PromptGetF(&ecow->prod_sell_prompt); |
436 |
prod->buy_price = PromptGetF(&ecow->prod_buy_prompt); |
437 |
prod->amount = PromptGetF(&ecow->prod_amount_prompt); |
438 |
@@ -448,7 +448,7 @@ |
439 |
*/ |
440 |
static void EcoWDrawCB(void *widget, void *data) |
441 |
{ |
442 |
- const int amount = (int)data; |
443 |
+ const int amount = (int)(size_t)data; |
444 |
ecow_struct *ecow = ECOW(widget); |
445 |
if(ecow == NULL) |
446 |
return; |
447 |
diff -ru xsw-2.6.1.orig/unvedit/optwin.cpp xsw-2.6.1/unvedit/optwin.cpp |
448 |
--- xsw-2.6.1.orig/unvedit/optwin.cpp 2008-06-23 19:00:00.000000000 -0400 |
449 |
+++ xsw-2.6.1/unvedit/optwin.cpp 2009-12-30 22:23:40.975781529 -0500 |
450 |
@@ -261,7 +261,7 @@ |
451 |
*/ |
452 |
static void OptWinDrawCB(void *widget, void *data) |
453 |
{ |
454 |
- const int amount = (int)data; |
455 |
+ const int amount = (int)(size_t)data; |
456 |
optwin_struct *ow = OPTWIN(widget); |
457 |
if(ow == NULL) |
458 |
return; |
459 |
@@ -590,7 +590,7 @@ |
460 |
clist = &ow->keymaps_list; |
461 |
n = MIN(clist->total_rows, UE_TOTAL_KEYMAPS); |
462 |
for(i = 0; i < n; i++) |
463 |
- keymap[i].keycode = (keycode_t)CListRowGetData(clist, i); |
464 |
+ keymap[i].keycode = (keycode_t)(size_t)CListRowGetData(clist, i); |
465 |
|
466 |
/* Reset has changes mark */ |
467 |
ow->has_changes = False; |
468 |
diff -ru xsw-2.6.1.orig/unvedit/printdlg.cpp xsw-2.6.1/unvedit/printdlg.cpp |
469 |
--- xsw-2.6.1.orig/unvedit/printdlg.cpp 2008-06-23 19:00:00.000000000 -0400 |
470 |
+++ xsw-2.6.1/unvedit/printdlg.cpp 2009-12-30 22:22:54.616785444 -0500 |
471 |
@@ -833,7 +833,7 @@ |
472 |
*/ |
473 |
static void PrintDlgDrawCB(void *widget, void *data) |
474 |
{ |
475 |
- const int amount = (int)data; |
476 |
+ const int amount = (int)(size_t)data; |
477 |
print_dlg_struct *pw = PRINT_DLG(widget); |
478 |
if(pw == NULL) |
479 |
return; |
480 |
diff -ru xsw-2.6.1.orig/unvedit/propdlg.cpp xsw-2.6.1/unvedit/propdlg.cpp |
481 |
--- xsw-2.6.1.orig/unvedit/propdlg.cpp 2008-06-23 19:00:00.000000000 -0400 |
482 |
+++ xsw-2.6.1/unvedit/propdlg.cpp 2009-12-30 22:22:33.892785842 -0500 |
483 |
@@ -335,7 +335,7 @@ |
484 |
} |
485 |
SET_STRING(obj->name, &d->name_prompt); |
486 |
pulist = &d->type_pulist; |
487 |
- obj->type = (int)PUListItemGetData( |
488 |
+ obj->type = (int)(size_t)PUListItemGetData( |
489 |
pulist, |
490 |
PUListGetSelItem(pulist) |
491 |
); |
492 |
@@ -480,7 +480,7 @@ |
493 |
obj->scanner_range = MAX(PromptGetF(&d->scanner_range_prompt), 0.0f); |
494 |
|
495 |
pulist = &d->engine_pulist; |
496 |
- obj->engine_state = (int)PUListItemGetData( |
497 |
+ obj->engine_state = (int)(size_t)PUListItemGetData( |
498 |
pulist, |
499 |
PUListGetSelItem(pulist) |
500 |
); |
501 |
@@ -502,12 +502,12 @@ |
502 |
); |
503 |
|
504 |
pulist = &d->shields_pulist; |
505 |
- obj->shield_state = (int)PUListItemGetData( |
506 |
+ obj->shield_state = (int)(size_t)PUListItemGetData( |
507 |
pulist, |
508 |
PUListGetSelItem(pulist) |
509 |
); |
510 |
pulist = &d->cloak_pulist; |
511 |
- obj->cloak_state = (int)PUListItemGetData( |
512 |
+ obj->cloak_state = (int)(size_t)PUListItemGetData( |
513 |
pulist, |
514 |
PUListGetSelItem(pulist) |
515 |
); |
516 |
@@ -543,7 +543,7 @@ |
517 |
|
518 |
|
519 |
pulist = &d->imgrefs_pulist; |
520 |
- obj->imgref = (int)PUListItemGetData( |
521 |
+ obj->imgref = (int)(size_t)PUListItemGetData( |
522 |
pulist, |
523 |
PUListGetSelItem(pulist) |
524 |
); |
525 |
@@ -651,7 +651,7 @@ |
526 |
*/ |
527 |
static void PropDlgDrawCB(void *widget, void *data) |
528 |
{ |
529 |
- const int amount = (int)data; |
530 |
+ const int amount = (int)(size_t)data; |
531 |
prop_dlg_struct *d = PROP_DLG(widget); |
532 |
if(d == NULL) |
533 |
return; |
534 |
@@ -693,7 +693,7 @@ |
535 |
if(d->freeze_count > 0) |
536 |
return; |
537 |
|
538 |
- imgref_num = (int)PUListItemGetData( |
539 |
+ imgref_num = (int)(size_t)PUListItemGetData( |
540 |
pulist, sel_item |
541 |
); |
542 |
|
543 |
@@ -1637,7 +1637,7 @@ |
544 |
pixmap = d->object_display_buf; |
545 |
|
546 |
/* Get the currently displayed imgref */ |
547 |
- imgref_num = (int)PUListItemGetData( |
548 |
+ imgref_num = (int)(size_t)PUListItemGetData( |
549 |
pulist, |
550 |
PUListGetSelItem(pulist) |
551 |
); |
552 |
@@ -1858,7 +1858,7 @@ |
553 |
d->freeze_count++; |
554 |
|
555 |
pulist = &d->type_pulist; |
556 |
- type = (int)PUListItemGetData( |
557 |
+ type = (int)(size_t)PUListItemGetData( |
558 |
pulist, |
559 |
PUListGetSelItem(pulist) |
560 |
); |
561 |
diff -ru xsw-2.6.1.orig/unvedit/uew.cpp xsw-2.6.1/unvedit/uew.cpp |
562 |
--- xsw-2.6.1.orig/unvedit/uew.cpp 2008-06-23 19:00:00.000000000 -0400 |
563 |
+++ xsw-2.6.1/unvedit/uew.cpp 2009-12-30 22:20:44.340788956 -0500 |
564 |
@@ -142,7 +142,7 @@ |
565 |
*/ |
566 |
static void UEWDrawCB(void *widget, void *data) |
567 |
{ |
568 |
- const int amount = (int)data; |
569 |
+ const int amount = (int)(size_t)data; |
570 |
uew_struct *uew = UEW(widget); |
571 |
if(uew == NULL) |
572 |
return; |
573 |
diff -ru xsw-2.6.1.orig/unvedit/uewcb.cpp xsw-2.6.1/unvedit/uewcb.cpp |
574 |
--- xsw-2.6.1.orig/unvedit/uewcb.cpp 2008-06-23 19:00:00.000000000 -0400 |
575 |
+++ xsw-2.6.1/unvedit/uewcb.cpp 2009-12-30 22:20:28.738858297 -0500 |
576 |
@@ -548,7 +548,7 @@ |
577 |
return; |
578 |
|
579 |
/* Get the selected imgref */ |
580 |
- imgref_num = (int)PUListItemGetData(pulist, sel_item); |
581 |
+ imgref_num = (int)(size_t)PUListItemGetData(pulist, sel_item); |
582 |
|
583 |
/* Set the object's current property values */ |
584 |
UEWPropsDoSetValues(uew, obj_num); |
585 |
diff -ru xsw-2.6.1.orig/unvedit/uhw.cpp xsw-2.6.1/unvedit/uhw.cpp |
586 |
--- xsw-2.6.1.orig/unvedit/uhw.cpp 2008-06-23 19:00:00.000000000 -0400 |
587 |
+++ xsw-2.6.1/unvedit/uhw.cpp 2009-12-30 22:20:13.045780838 -0500 |
588 |
@@ -546,7 +546,7 @@ |
589 |
*/ |
590 |
static void UHWDrawCB(void *widget, void *data) |
591 |
{ |
592 |
- const int amount = (int)data; |
593 |
+ const int amount = (int)(size_t)data; |
594 |
uhw_struct *uhw = UHW(widget); |
595 |
if(uhw == NULL) |
596 |
return; |
597 |
diff -ru xsw-2.6.1.orig/unvedit/wcheckbutton.cpp xsw-2.6.1/unvedit/wcheckbutton.cpp |
598 |
--- xsw-2.6.1.orig/unvedit/wcheckbutton.cpp 2008-06-23 19:00:00.000000000 -0400 |
599 |
+++ xsw-2.6.1/unvedit/wcheckbutton.cpp 2009-12-30 21:36:00.024941571 -0500 |
600 |
@@ -63,7 +63,7 @@ |
601 |
*/ |
602 |
static void CBtnDrawCB(void *widget, void *data) |
603 |
{ |
604 |
- int amount = (int)data; |
605 |
+ int amount = (int)(size_t)data; |
606 |
check_button_struct *cb = (check_button_struct *)widget; |
607 |
if(cb == NULL) |
608 |
return; |
609 |
diff -ru xsw-2.6.1.orig/unvedit/wclist.cpp xsw-2.6.1/unvedit/wclist.cpp |
610 |
--- xsw-2.6.1.orig/unvedit/wclist.cpp 2008-06-23 19:00:00.000000000 -0400 |
611 |
+++ xsw-2.6.1/unvedit/wclist.cpp 2009-12-30 21:36:19.867780925 -0500 |
612 |
@@ -180,7 +180,7 @@ |
613 |
*/ |
614 |
static void CListDrawCB(void *widget, void *data) |
615 |
{ |
616 |
- int draw_amount = (int)data; |
617 |
+ int draw_amount = (int)(size_t)data; |
618 |
clist_struct *clist = (clist_struct *)widget; |
619 |
if(clist == NULL) |
620 |
return; |
621 |
diff -ru xsw-2.6.1.orig/unvedit/wepw.cpp xsw-2.6.1/unvedit/wepw.cpp |
622 |
--- xsw-2.6.1.orig/unvedit/wepw.cpp 2008-06-23 19:00:00.000000000 -0400 |
623 |
+++ xsw-2.6.1/unvedit/wepw.cpp 2009-12-30 22:19:54.179785141 -0500 |
624 |
@@ -486,7 +486,7 @@ |
625 |
{ |
626 |
const char *name = pulist_item->text; |
627 |
|
628 |
- wep->ocs_code = (int)PUListItemGetData(pulist, i); |
629 |
+ wep->ocs_code = (int)(size_t)PUListItemGetData(pulist, i); |
630 |
|
631 |
if(!STRISEMPTY(name)) |
632 |
{ |
633 |
@@ -528,7 +528,7 @@ |
634 |
wep->create_power = PromptGetF(&wepw->create_power_prompt); |
635 |
wep->delay = PromptGetL(&wepw->delay_prompt); |
636 |
pulist = &wepw->fire_sndref_pulist; |
637 |
- wep->fire_sndref = (int)PUListItemGetData( |
638 |
+ wep->fire_sndref = (int)(size_t)PUListItemGetData( |
639 |
pulist, |
640 |
PUListGetSelItem(pulist) |
641 |
); |
642 |
@@ -561,7 +561,7 @@ |
643 |
*/ |
644 |
static void WepWDrawCB(void *widget, void *data) |
645 |
{ |
646 |
- const int amount = (int)data; |
647 |
+ const int amount = (int)(size_t)data; |
648 |
wepw_struct *wepw = WEPW(widget); |
649 |
if(wepw == NULL) |
650 |
return; |
651 |
@@ -927,7 +927,7 @@ |
652 |
/* Weapons list */ |
653 |
clist = &wepw->list; |
654 |
width = (unsigned int)MAX( |
655 |
- (int)wepw->width - WEPW_BUTTON_WIDTH - |
656 |
+ (int)(size_t)wepw->width - WEPW_BUTTON_WIDTH - |
657 |
(2 * WEPW_MARGIN) - 5, |
658 |
100 |
659 |
); |
660 |
diff -ru xsw-2.6.1.orig/unvedit/wfilebrowser.cpp xsw-2.6.1/unvedit/wfilebrowser.cpp |
661 |
--- xsw-2.6.1.orig/unvedit/wfilebrowser.cpp 2008-06-23 19:00:00.000000000 -0400 |
662 |
+++ xsw-2.6.1/unvedit/wfilebrowser.cpp 2009-12-30 21:48:53.840781232 -0500 |
663 |
@@ -590,7 +590,7 @@ |
664 |
*/ |
665 |
static void FBrowserDrawCB(void *widget, void *data) |
666 |
{ |
667 |
- int draw_amount = (int)data; |
668 |
+ int draw_amount = (int)(size_t)data; |
669 |
fb_struct *fb = (fb_struct *)widget; |
670 |
if(fb == NULL) |
671 |
return; |
672 |
diff -ru xsw-2.6.1.orig/unvedit/wpopuplist.cpp xsw-2.6.1/unvedit/wpopuplist.cpp |
673 |
--- xsw-2.6.1.orig/unvedit/wpopuplist.cpp 2008-06-23 19:00:00.000000000 -0400 |
674 |
+++ xsw-2.6.1/unvedit/wpopuplist.cpp 2009-12-30 21:52:55.864780577 -0500 |
675 |
@@ -311,7 +311,7 @@ |
676 |
*/ |
677 |
static void PUListDrawCB(void *widget, void *data) |
678 |
{ |
679 |
- int amount = (int)data; |
680 |
+ int amount = (int)(size_t)data; |
681 |
popup_list_struct *list = (popup_list_struct *)widget; |
682 |
if(list == NULL) |
683 |
return; |
684 |
diff -ru xsw-2.6.1.orig/unvedit/wprompt.cpp xsw-2.6.1/unvedit/wprompt.cpp |
685 |
--- xsw-2.6.1.orig/unvedit/wprompt.cpp 2008-06-23 19:00:00.000000000 -0400 |
686 |
+++ xsw-2.6.1/unvedit/wprompt.cpp 2009-12-30 21:53:13.222906280 -0500 |
687 |
@@ -157,7 +157,7 @@ |
688 |
*/ |
689 |
static void PromptDrawCB(void *widget, void *data) |
690 |
{ |
691 |
- int amount = (int)data; |
692 |
+ int amount = (int)(size_t)data; |
693 |
prompt_struct *prompt = (prompt_struct *)widget; |
694 |
if(prompt == NULL) |
695 |
return; |
696 |
diff -ru xsw-2.6.1.orig/unvedit/wscrollbar.cpp xsw-2.6.1/unvedit/wscrollbar.cpp |
697 |
--- xsw-2.6.1.orig/unvedit/wscrollbar.cpp 2008-06-23 19:00:00.000000000 -0400 |
698 |
+++ xsw-2.6.1/unvedit/wscrollbar.cpp 2009-12-30 21:53:42.093781356 -0500 |
699 |
@@ -130,7 +130,7 @@ |
700 |
static void SBarScrollTimeoutCB(void *widget, void *data) |
701 |
{ |
702 |
int prev_x_pos, prev_y_pos; |
703 |
- int op = (int)data; |
704 |
+ int op = (int)(size_t)data; |
705 |
scroll_bar_struct *sb = (scroll_bar_struct *)widget; |
706 |
if(sb == NULL) |
707 |
return; |
708 |
diff -ru xsw-2.6.1.orig/widgets/wcheckbutton.cpp xsw-2.6.1/widgets/wcheckbutton.cpp |
709 |
--- xsw-2.6.1.orig/widgets/wcheckbutton.cpp 2008-06-23 19:00:00.000000000 -0400 |
710 |
+++ xsw-2.6.1/widgets/wcheckbutton.cpp 2009-12-30 21:36:00.024941571 -0500 |
711 |
@@ -63,7 +63,7 @@ |
712 |
*/ |
713 |
static void CBtnDrawCB(void *widget, void *data) |
714 |
{ |
715 |
- int amount = (int)data; |
716 |
+ int amount = (int)(size_t)data; |
717 |
check_button_struct *cb = (check_button_struct *)widget; |
718 |
if(cb == NULL) |
719 |
return; |
720 |
diff -ru xsw-2.6.1.orig/widgets/wclist.cpp xsw-2.6.1/widgets/wclist.cpp |
721 |
--- xsw-2.6.1.orig/widgets/wclist.cpp 2008-06-23 19:00:00.000000000 -0400 |
722 |
+++ xsw-2.6.1/widgets/wclist.cpp 2009-12-30 21:36:19.867780925 -0500 |
723 |
@@ -180,7 +180,7 @@ |
724 |
*/ |
725 |
static void CListDrawCB(void *widget, void *data) |
726 |
{ |
727 |
- int draw_amount = (int)data; |
728 |
+ int draw_amount = (int)(size_t)data; |
729 |
clist_struct *clist = (clist_struct *)widget; |
730 |
if(clist == NULL) |
731 |
return; |
732 |
diff -ru xsw-2.6.1.orig/widgets/wfilebrowser.cpp xsw-2.6.1/widgets/wfilebrowser.cpp |
733 |
--- xsw-2.6.1.orig/widgets/wfilebrowser.cpp 2008-06-23 19:00:00.000000000 -0400 |
734 |
+++ xsw-2.6.1/widgets/wfilebrowser.cpp 2009-12-30 21:48:53.840781232 -0500 |
735 |
@@ -590,7 +590,7 @@ |
736 |
*/ |
737 |
static void FBrowserDrawCB(void *widget, void *data) |
738 |
{ |
739 |
- int draw_amount = (int)data; |
740 |
+ int draw_amount = (int)(size_t)data; |
741 |
fb_struct *fb = (fb_struct *)widget; |
742 |
if(fb == NULL) |
743 |
return; |
744 |
diff -ru xsw-2.6.1.orig/widgets/wpopuplist.cpp xsw-2.6.1/widgets/wpopuplist.cpp |
745 |
--- xsw-2.6.1.orig/widgets/wpopuplist.cpp 2008-06-23 19:00:00.000000000 -0400 |
746 |
+++ xsw-2.6.1/widgets/wpopuplist.cpp 2009-12-30 21:52:55.864780577 -0500 |
747 |
@@ -311,7 +311,7 @@ |
748 |
*/ |
749 |
static void PUListDrawCB(void *widget, void *data) |
750 |
{ |
751 |
- int amount = (int)data; |
752 |
+ int amount = (int)(size_t)data; |
753 |
popup_list_struct *list = (popup_list_struct *)widget; |
754 |
if(list == NULL) |
755 |
return; |
756 |
diff -ru xsw-2.6.1.orig/widgets/wprompt.cpp xsw-2.6.1/widgets/wprompt.cpp |
757 |
--- xsw-2.6.1.orig/widgets/wprompt.cpp 2008-06-23 19:00:00.000000000 -0400 |
758 |
+++ xsw-2.6.1/widgets/wprompt.cpp 2009-12-30 21:53:13.222906280 -0500 |
759 |
@@ -157,7 +157,7 @@ |
760 |
*/ |
761 |
static void PromptDrawCB(void *widget, void *data) |
762 |
{ |
763 |
- int amount = (int)data; |
764 |
+ int amount = (int)(size_t)data; |
765 |
prompt_struct *prompt = (prompt_struct *)widget; |
766 |
if(prompt == NULL) |
767 |
return; |
768 |
diff -ru xsw-2.6.1.orig/widgets/wscrollbar.cpp xsw-2.6.1/widgets/wscrollbar.cpp |
769 |
--- xsw-2.6.1.orig/widgets/wscrollbar.cpp 2008-06-23 19:00:00.000000000 -0400 |
770 |
+++ xsw-2.6.1/widgets/wscrollbar.cpp 2009-12-30 21:53:42.093781356 -0500 |
771 |
@@ -130,7 +130,7 @@ |
772 |
static void SBarScrollTimeoutCB(void *widget, void *data) |
773 |
{ |
774 |
int prev_x_pos, prev_y_pos; |
775 |
- int op = (int)data; |
776 |
+ int op = (int)(size_t)data; |
777 |
scroll_bar_struct *sb = (scroll_bar_struct *)widget; |
778 |
if(sb == NULL) |
779 |
return; |