File: fix-UTF-8-support.patch

package info (click to toggle)
fldiff 1.1%2B0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 540 kB
  • sloc: cpp: 3,002; makefile: 82; sh: 42
file content (33 lines) | stat: -rw-r--r-- 1,500 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Description: Migrate to libfltk1.3-dev to support UTF-8.
Author: Innocent De Marchi
Last-Update: 2017-12-22

--- a/DiffWindow.h
+++ b/DiffWindow.h
@@ -76,12 +76,14 @@
 		~DiffWindow();
 
   void		color(Fl_Color c) { view_.color(c); }
-  Fl_Color	color() const { return (view_.color()); }
+  //Fl_Color	color() const { return (view_.color()); }
+  int		color() const { return (view_.color()); }
   int		handle(int event);
   bool		load(const char *file1, const char *file2);
   void		resize(int X, int Y, int W, int H);
   void		selection_color(Fl_Color c) { view_.selection_color(c); }
-  Fl_Color	selection_color() const { return (view_.selection_color()); }
+  //Fl_Color	selection_color() const { return (view_.selection_color()); }
+  int		selection_color() const { return (view_.selection_color()); }
   void		showlinenum(bool b) { view_.showlinenum(b); }
   bool		showlinenum() const { return (view_.showlinenum()); }
   void		ignoreblanks(bool b) { view_.ignoreblanks(b); }
@@ -89,7 +91,8 @@
   void		tabwidth(int t) { view_.tabwidth(t); }
   int		tabwidth() const { return (view_.tabwidth()); }
   void		textcolor(Fl_Color c) { view_.textcolor(c); }
-  Fl_Color	textcolor() const { return (view_.textcolor()); }
+  //Fl_Color	textcolor() const { return (view_.textcolor()); }
+  int		textcolor() const { return (view_.textcolor()); }
   void		textfont(uchar f) { view_.textfont(f); }
   uchar		textfont() const { return (view_.textfont()); }
   void		textsize(uchar s) { view_.textsize(s); }