diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-05-16 02:16:17 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-05-16 02:16:17 +0000 |
| commit | af1ec00483000fe92ad902a599779863f42b1e17 (patch) | |
| tree | ecd30493cfa8b66d18547ed144ca410478b63ee9 /src/fl_font_xft.cxx | |
| parent | 83c0e840baff12c31d46f818bcb645511a0767a0 (diff) | |
More color fixes for Xft (fl_color_ wasn't always set)
Fix plastic boxtype (1 pixel too high)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2234 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_font_xft.cxx')
| -rw-r--r-- | src/fl_font_xft.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fl_font_xft.cxx b/src/fl_font_xft.cxx index fdcfc69d4..fb62654cd 100644 --- a/src/fl_font_xft.cxx +++ b/src/fl_font_xft.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_font_xft.cxx,v 1.4.2.5 2002/05/15 23:20:51 easysw Exp $" +// "$Id: fl_font_xft.cxx,v 1.4.2.6 2002/05/16 02:16:17 easysw Exp $" // // Xft font code for the Fast Light Tool Kit (FLTK). // @@ -217,14 +217,14 @@ void fl_draw(const char *str, int n, int x, int y) { XftColor color; color.pixel = fl_xpixel(fl_color_); uchar r,g,b; Fl::get_color(fl_color_, r,g,b); - color.color.red = (int)r*0x101; - color.color.green = (int)g*0x101; - color.color.blue = (int)b*0x101; + color.color.red = ((int)r)*0x101; + color.color.green = ((int)g)*0x101; + color.color.blue = ((int)b)*0x101; color.color.alpha = 0xffff; XftDrawString8(draw, &color, current_font, x, y, (XftChar8 *)str, n); } // -// End of "$Id: fl_font_xft.cxx,v 1.4.2.5 2002/05/15 23:20:51 easysw Exp $" +// End of "$Id: fl_font_xft.cxx,v 1.4.2.6 2002/05/16 02:16:17 easysw Exp $" // |
