diff options
author | Diane Bruce <db@FreeBSD.org> | 2007-09-27 17:17:58 +0000 |
---|---|---|
committer | Diane Bruce <db@FreeBSD.org> | 2007-09-27 17:17:58 +0000 |
commit | dc46db692a3a25b0fefe805708dfb96176b9d932 (patch) | |
tree | bc64a275d8e2068cb01ef32c42267f26983ce019 /x11-toolkits | |
parent | e91317d068556ba91c139dd698f27cab687e7deb (diff) |
Notes
Diffstat (limited to 'x11-toolkits')
-rw-r--r-- | x11-toolkits/fltk/files/patch-test_cursor.cxx | 11 | ||||
-rw-r--r-- | x11-toolkits/fltk/files/patch-test_input.cxx | 19 | ||||
-rw-r--r-- | x11-toolkits/fltk/files/patch-test_keyboard.cxx | 16 | ||||
-rw-r--r-- | x11-toolkits/fltk/files/patch-test_line_style.cxx | 15 | ||||
-rw-r--r-- | x11-toolkits/fltk/files/patch-test_scroll.cxx | 20 |
5 files changed, 81 insertions, 0 deletions
diff --git a/x11-toolkits/fltk/files/patch-test_cursor.cxx b/x11-toolkits/fltk/files/patch-test_cursor.cxx new file mode 100644 index 000000000000..d0c3f51523e4 --- /dev/null +++ b/x11-toolkits/fltk/files/patch-test_cursor.cxx @@ -0,0 +1,11 @@ +--- test/cursor.cxx.orig Fri Apr 15 20:13:17 2005 ++++ test/cursor.cxx Thu Sep 27 12:42:14 2007 +@@ -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); + } diff --git a/x11-toolkits/fltk/files/patch-test_input.cxx b/x11-toolkits/fltk/files/patch-test_input.cxx new file mode 100644 index 000000000000..351dd04a62b8 --- /dev/null +++ b/x11-toolkits/fltk/files/patch-test_input.cxx @@ -0,0 +1,19 @@ +--- test/input.cxx.orig Fri Sep 21 21:59:12 2007 ++++ test/input.cxx Fri Sep 21 22:44:21 2007 +@@ -26,6 +26,7 @@ + // + + #include <stdio.h> ++#include <sys/types.h> + #include <FL/Fl.H> + #include <FL/Fl_Window.H> + #include <FL/Fl_Input.H> +@@ -61,7 +62,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; diff --git a/x11-toolkits/fltk/files/patch-test_keyboard.cxx b/x11-toolkits/fltk/files/patch-test_keyboard.cxx new file mode 100644 index 000000000000..3ae207089b73 --- /dev/null +++ b/x11-toolkits/fltk/files/patch-test_keyboard.cxx @@ -0,0 +1,16 @@ +--- test/keyboard.cxx.orig Sat Sep 22 10:00:16 2007 ++++ test/keyboard.cxx Sat Sep 22 12:05:41 2007 +@@ -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)); + } + } diff --git a/x11-toolkits/fltk/files/patch-test_line_style.cxx b/x11-toolkits/fltk/files/patch-test_line_style.cxx new file mode 100644 index 000000000000..b31f9bd9a8de --- /dev/null +++ b/x11-toolkits/fltk/files/patch-test_line_style.cxx @@ -0,0 +1,15 @@ +--- test/line_style.cxx.orig Sat Sep 22 12:55:42 2007 ++++ test/line_style.cxx Sat Sep 22 12:56:25 2007 +@@ -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); diff --git a/x11-toolkits/fltk/files/patch-test_scroll.cxx b/x11-toolkits/fltk/files/patch-test_scroll.cxx new file mode 100644 index 000000000000..1c340c3abd4c --- /dev/null +++ b/x11-toolkits/fltk/files/patch-test_scroll.cxx @@ -0,0 +1,20 @@ +--- test/scroll.cxx.orig Sat Sep 22 13:33:34 2007 ++++ test/scroll.cxx Sat Sep 22 13:33:53 2007 +@@ -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(); + } + |