summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Pawlik <nelchael@gentoo.org>2006-11-15 11:46:20 +0000
committerKrzysztof Pawlik <nelchael@gentoo.org>2006-11-15 11:46:20 +0000
commit5e6b25930eb3c9709cebf4b8dbc62fe0f1d8cb93 (patch)
tree2af4a3eedb3196f6c539a256321292bb34f234d1 /x11-libs/fltk/files
parentAdd arts USE flag (diff)
downloadhistorical-5e6b25930eb3c9709cebf4b8dbc62fe0f1d8cb93.tar.gz
historical-5e6b25930eb3c9709cebf4b8dbc62fe0f1d8cb93.tar.bz2
historical-5e6b25930eb3c9709cebf4b8dbc62fe0f1d8cb93.zip
Add patch for amd64 by aballier, see bug #154877.
Package-Manager: portage-2.1.2_rc1-r7
Diffstat (limited to 'x11-libs/fltk/files')
-rw-r--r--x11-libs/fltk/files/fltk-1.1.7-amd64.patch73
1 files changed, 73 insertions, 0 deletions
diff --git a/x11-libs/fltk/files/fltk-1.1.7-amd64.patch b/x11-libs/fltk/files/fltk-1.1.7-amd64.patch
new file mode 100644
index 000000000000..f1c334dad993
--- /dev/null
+++ b/x11-libs/fltk/files/fltk-1.1.7-amd64.patch
@@ -0,0 +1,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();
+ }
+