On 05.07.2011 21:11, Greg Ercolano wrote:
> Got the following errors while building fldiff 1.1 against FLTK 1.3.0 on
> centos 5.5:
...
> Applied the following patch that casts the colors as integers
> to get it to build OK:
>
> --- fldiff-1.1/DiffWindow.cxx 2006-11-13 10:54:02.000000000 -0800
> +++ fldiff-1.1a/DiffWindow.cxx 2011-07-05 11:59:57.000000000 -0700
> @@ -1126,11 +1126,11 @@
> DiffWindow::save_prefs()
> {
> // Save the window prefs for the next run...
> - prefs_.set("color", color());
> - prefs_.set("selection_color", selection_color());
> + prefs_.set("color", (int)color());
> + prefs_.set("selection_color", (int)selection_color());
> prefs_.set("showlinenum", showlinenum());
> prefs_.set("tabwidth", tabwidth());
> - prefs_.set("textcolor", textcolor());
> + prefs_.set("textcolor", (int)textcolor());
> prefs_.set("textsize", textsize());
> prefs_.set("ignoreblanks", ignoreblanks());
> }
FWIW: this is already in the svn repository of fldiff (r450), see
http://svn.easysw.com/public/fltk/applications/trunk/fldiff
Albrecht
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk