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
66
67
68
69
70
71
72
73
|
--- fltk-1.1.7/test/cursor.cxx.old 2006-11-12 14:00:36.000000000 +0100
+++ fltk-1.1.7/test/cursor.cxx 2006-11-12 14:00:46.000000000 +0100
@@ -39,7 +39,7 @@
Fl_Hor_Value_Slider *cursor_slider;
void choice_cb(Fl_Widget *, void *v) {
- cursor = (Fl_Cursor)(int)v;
+ cursor = (Fl_Cursor)(long)v;
cursor_slider->value(cursor);
fl_cursor(cursor,fg,bg);
}
--- fltk-1.1.7/test/input.cxx.old 2006-11-12 14:01:27.000000000 +0100
+++ fltk-1.1.7/test/input.cxx 2006-11-12 14:01:37.000000000 +0100
@@ -61,7 +61,7 @@
void color_cb(Fl_Widget* button, void* v) {
Fl_Color c;
- switch ((int)v) {
+ switch ((long)v) {
case 0: c = FL_BACKGROUND2_COLOR; break;
case 1: c = FL_SELECTION_COLOR; break;
default: c = FL_FOREGROUND_COLOR; break;
--- fltk-1.1.7/test/keyboard.cxx.old 2006-11-12 14:02:10.000000000 +0100
+++ fltk-1.1.7/test/keyboard.cxx 2006-11-12 14:02:30.000000000 +0100
@@ -105,11 +105,11 @@
for (int i = 0; i < window->children(); i++) {
Fl_Widget* b = window->child(i);
if (b->callback() == (Fl_Callback*)key_cb) {
- int i = int(b->user_data());
+ long i = long(b->user_data());
if (!i) i = b->label()[0];
((Fl_Button*)b)->value(Fl::event_key(i));
} else if (b->callback() == (Fl_Callback*)shift_cb) {
- int i = int(b->user_data());
+ long i = long(b->user_data());
((Fl_Button*)b)->value(Fl::event_state(i));
}
}
--- fltk-1.1.7/test/line_style.cxx.old 2006-11-12 14:03:00.000000000 +0100
+++ fltk-1.1.7/test/line_style.cxx 2006-11-12 14:03:18.000000000 +0100
@@ -54,9 +54,9 @@
buf[3] = char(sliders[7]->value());
buf[4] = 0;
fl_line_style(
- (int)(choice[0]->mvalue()->user_data()) +
- (int)(choice[1]->mvalue()->user_data()) +
- (int)(choice[2]->mvalue()->user_data()),
+ (long)(choice[0]->mvalue()->user_data()) +
+ (long)(choice[1]->mvalue()->user_data()) +
+ (long)(choice[2]->mvalue()->user_data()),
(int)(sliders[3]->value()),
buf);
fl_rect(10,10,w()-20,h()-20);
--- fltk-1.1.7/test/scroll.cxx.old 2006-11-12 14:03:55.000000000 +0100
+++ fltk-1.1.7/test/scroll.cxx 2006-11-12 14:04:19.000000000 +0100
@@ -71,7 +71,7 @@
}
void type_cb(Fl_Widget*, void* v) {
- thescroll->type(int(v));
+ thescroll->type(long(v));
thescroll->redraw();
}
@@ -87,7 +87,7 @@
};
void align_cb(Fl_Widget*, void* v) {
- thescroll->scrollbar.align(int(v));
+ thescroll->scrollbar.align(long(v));
thescroll->redraw();
}
|