From af1ec00483000fe92ad902a599779863f42b1e17 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 16 May 2002 02:16:17 +0000 Subject: 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 --- src/fl_font_xft.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/fl_font_xft.cxx') 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 $" // -- cgit v1.2.3