summaryrefslogtreecommitdiff
path: root/src/fl_font_xft.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2004-09-09 21:34:48 +0000
committerMatthias Melcher <fltk@matthiasm.com>2004-09-09 21:34:48 +0000
commite20773fa577154d9d5338cecf5f0912d1c9514cc (patch)
tree978d03742b04d3a63ba4cf30156c655636ff3e30 /src/fl_font_xft.cxx
parentb90f593ae6c6769a1244b5efebbcad3f469027ae (diff)
Quartz port:
- removed all #warning statemnets and explained caveats with regular // warning lines - made GL text rendering work again (may use wrong fonts since agl doesn't really support ATS) - removed horizontal jittering in Fl_Input_ caused by fractional text positions. Unfortunatly, this does not work for Fl_Text_Display, which not only jitters, but also became horendously slow due to the complex font rendering in Quartz) I will fix some of the speed issues in fl_measure this afternoon, and also improve on the 'innards' for rgb data rendering. After that, I will have to leave the Quartz port alone for a while due to lack of time. I suggest we make another rc in the next days. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3812 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_font_xft.cxx')
-rw-r--r--src/fl_font_xft.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/fl_font_xft.cxx b/src/fl_font_xft.cxx
index 227583546..a37e4868c 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.14 2004/09/07 20:59:18 easysw Exp $"
+// "$Id: fl_font_xft.cxx,v 1.4.2.15 2004/09/09 21:34:47 matthiaswm Exp $"
//
// Xft font code for the Fast Light Tool Kit (FLTK).
//
@@ -254,6 +254,10 @@ void fl_draw(const char *str, int n, int x, int y) {
XftDrawString8(draw, &color, current_font, x, y, (XftChar8 *)str, n);
}
+void fl_draw(const char* str, int n, float x, float y) {
+ return fl_draw(str, n, (int)x, (int)y);
+}
+
//
-// End of "$Id: fl_font_xft.cxx,v 1.4.2.14 2004/09/07 20:59:18 easysw Exp $"
+// End of "$Id: fl_font_xft.cxx,v 1.4.2.15 2004/09/09 21:34:47 matthiaswm Exp $"
//