]> git.pld-linux.org Git - packages/fltk.git/blame - fltk-cxx.patch
- updated to 1.1.8
[packages/fltk.git] / fltk-cxx.patch
CommitLineData
22659c7f
PS
1--- fltk-1.1.7/test/cursor.cxx.orig 2005-04-16 02:13:17.000000000 +0200
2+++ fltk-1.1.7/test/cursor.cxx 2006-08-17 09:53:16.305737500 +0200
3@@ -39,7 +39,7 @@
4 Fl_Hor_Value_Slider *cursor_slider;
5
6 void choice_cb(Fl_Widget *, void *v) {
7- cursor = (Fl_Cursor)(int)v;
8+ cursor = (Fl_Cursor)(long)v;
9 cursor_slider->value(cursor);
10 fl_cursor(cursor,fg,bg);
11 }
12--- fltk-1.1.7/test/input.cxx.orig 2005-11-02 14:57:56.000000000 +0100
13+++ fltk-1.1.7/test/input.cxx 2006-08-17 09:55:33.874335000 +0200
14@@ -61,7 +61,7 @@
15
16 void color_cb(Fl_Widget* button, void* v) {
17 Fl_Color c;
18- switch ((int)v) {
19+ switch ((long)v) {
20 case 0: c = FL_BACKGROUND2_COLOR; break;
21 case 1: c = FL_SELECTION_COLOR; break;
22 default: c = FL_FOREGROUND_COLOR; break;
23--- fltk-1.1.7/test/keyboard.cxx.orig 2005-04-28 19:48:04.000000000 +0200
24+++ fltk-1.1.7/test/keyboard.cxx 2006-08-17 09:56:43.650695750 +0200
25@@ -105,11 +105,11 @@
26 for (int i = 0; i < window->children(); i++) {
27 Fl_Widget* b = window->child(i);
28 if (b->callback() == (Fl_Callback*)key_cb) {
29- int i = int(b->user_data());
30+ int i = long(b->user_data());
31 if (!i) i = b->label()[0];
32 ((Fl_Button*)b)->value(Fl::event_key(i));
33 } else if (b->callback() == (Fl_Callback*)shift_cb) {
34- int i = int(b->user_data());
35+ int i = long(b->user_data());
36 ((Fl_Button*)b)->value(Fl::event_state(i));
37 }
38 }
39--- fltk-1.1.7/test/line_style.cxx.orig 2005-04-16 02:13:17.000000000 +0200
40+++ fltk-1.1.7/test/line_style.cxx 2006-08-17 09:57:11.348426750 +0200
41@@ -54,9 +54,9 @@
42 buf[3] = char(sliders[7]->value());
43 buf[4] = 0;
44 fl_line_style(
45- (int)(choice[0]->mvalue()->user_data()) +
46- (int)(choice[1]->mvalue()->user_data()) +
47- (int)(choice[2]->mvalue()->user_data()),
48+ (long)(choice[0]->mvalue()->user_data()) +
49+ (long)(choice[1]->mvalue()->user_data()) +
50+ (long)(choice[2]->mvalue()->user_data()),
51 (int)(sliders[3]->value()),
52 buf);
53 fl_rect(10,10,w()-20,h()-20);
54--- fltk-1.1.7/test/scroll.cxx.orig 2005-04-16 02:13:17.000000000 +0200
55+++ fltk-1.1.7/test/scroll.cxx 2006-08-17 09:57:40.554252000 +0200
56@@ -71,7 +71,7 @@
57 }
58
59 void type_cb(Fl_Widget*, void* v) {
60- thescroll->type(int(v));
61+ thescroll->type(long(v));
62 thescroll->redraw();
63 }
64
65@@ -87,7 +87,7 @@
66 };
67
68 void align_cb(Fl_Widget*, void* v) {
69- thescroll->scrollbar.align(int(v));
70+ thescroll->scrollbar.align(long(v));
71 thescroll->redraw();
dc9a083e
PS
72 }
73
This page took 0.102455 seconds and 4 git commands to generate.