]> git.pld-linux.org Git - packages/fltk.git/commitdiff
- generate code which compiles even without -fpermissive
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 30 Oct 2003 16:29:36 +0000 (16:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    fltk-fluid-color.patch -> 1.1

fltk-fluid-color.patch [new file with mode: 0644]

diff --git a/fltk-fluid-color.patch b/fltk-fluid-color.patch
new file mode 100644 (file)
index 0000000..da06dbc
--- /dev/null
@@ -0,0 +1,32 @@
+--- fltk-1.1.3/fluid/Fl_Widget_Type.cxx.orig   Tue Nov  5 07:45:40 2002
++++ fltk-1.1.3/fluid/Fl_Widget_Type.cxx        Thu Oct 30 17:15:34 2003
+@@ -1570,9 +1570,9 @@
+                              boxname(b->down_box()));
+   }
+   if (o->color() != tplate->color() || subclass())
+-    write_c("%so->color(%d);\n", indent(), o->color());
++    write_c("%so->color((Fl_Color)%d);\n", indent(), o->color());
+   if (o->selection_color() != tplate->selection_color() || subclass())
+-    write_c("%so->selection_color(%d);\n", indent(), o->selection_color());
++    write_c("%so->selection_color((Fl_Color)%d);\n", indent(), o->selection_color());
+   if (image) image->write_code();
+   if (inactive) inactive->write_code(1);
+   if (o->labeltype() != tplate->labeltype() || subclass())
+@@ -1583,7 +1583,7 @@
+   if (o->labelsize() != tplate->labelsize() || subclass())
+     write_c("%so->labelsize(%d);\n", indent(), o->labelsize());
+   if (o->labelcolor() != tplate->labelcolor() || subclass())
+-    write_c("%so->labelcolor(%d);\n", indent(), o->labelcolor());
++    write_c("%so->labelcolor((Fl_Color)%d);\n", indent(), o->labelcolor());
+   if (is_valuator()) {
+     Fl_Valuator* v = (Fl_Valuator*)o;
+     Fl_Valuator* f = (Fl_Valuator*)(tplate);
+@@ -1605,7 +1605,7 @@
+     Fl_Font f; int s; Fl_Color c; textstuff(0,f,s,c);
+     if (f != ff) write_c("%so->textfont(%d);\n", indent(), f);
+     if (s != fs) write_c("%so->textsize(%d);\n", indent(), s);
+-    if (c != fc) write_c("%so->textcolor(%d);\n",indent(), c);
++    if (c != fc) write_c("%so->textcolor((Fl_Color)%d);\n",indent(), c);
+   }}
+   const char* ud = user_data();
+   if (class_name(1) && !parent->is_widget()) ud = "this";
This page took 0.115544 seconds and 4 git commands to generate.