summaryrefslogtreecommitdiff
path: root/src/drivers/Xlib
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2016-12-23 15:40:25 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2016-12-23 15:40:25 +0000
commit3145e065850b258fe065b5c8df27db0426417275 (patch)
tree10a3f937f81dc3c1471b797f6f506330aaa9ae7d /src/drivers/Xlib
parent60a9eee30d3546c0574a894cc71085cb155c2b5d (diff)
Fix CMake config.h and compiler warnings.
Fixed warnings: -Wsign-compare, -Wunused-but-set-variable. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12155 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/Xlib')
-rw-r--r--src/drivers/Xlib/Fl_Xlib_Graphics_Driver_font_xft.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_font_xft.cxx b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_font_xft.cxx
index 5b39b0e6b..167e2abe2 100644
--- a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_font_xft.cxx
+++ b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_font_xft.cxx
@@ -1223,14 +1223,10 @@ void Fl_Xlib_Graphics_Driver::do_draw(int from_right, const char *str, int n, in
}
const char *old = 0;
if (!str2) old = pango_layout_get_text(playout_);
- if (!old || strlen(old) != n || memcmp(str, old, n)) // do not re-set text if equal to text already in layout
+ if (!old || (int)strlen(old) != n || memcmp(str, old, n)) // do not re-set text if equal to text already in layout
pango_layout_set_text(playout_, str, n);
if (str2) free(str2);
- int found=0;
- if(strstr(str, "α")) {
- found=1;
- }
-
+
XftColor color;
Fl_Color c = this->color();
color.pixel = fl_xpixel(c);