mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 00:22:42 +08:00
Xft2 fix from Stephen Davies...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2835 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+4
-6
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: fl_font_xft.cxx,v 1.4.2.8 2002/11/09 22:59:06 easysw Exp $"
|
// "$Id: fl_font_xft.cxx,v 1.4.2.9 2002/11/12 20:35:17 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Xft font code for the Fast Light Tool Kit (FLTK).
|
// Xft font code for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -209,10 +209,8 @@ void fl_draw(const char *str, int n, int x, int y) {
|
|||||||
XftDrawChange(draw, draw_window = fl_window);
|
XftDrawChange(draw, draw_window = fl_window);
|
||||||
|
|
||||||
Region region = fl_clip_region();
|
Region region = fl_clip_region();
|
||||||
if (region) {
|
if (region && XEmptyRegion(region)) return;
|
||||||
if (XEmptyRegion(region)) return;
|
XftDrawSetClip(draw, region);
|
||||||
XftDrawSetClip(draw, region);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Use fltk's color allocator, copy the results to match what
|
// Use fltk's color allocator, copy the results to match what
|
||||||
// XftCollorAllocValue returns:
|
// XftCollorAllocValue returns:
|
||||||
@@ -228,5 +226,5 @@ void fl_draw(const char *str, int n, int x, int y) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: fl_font_xft.cxx,v 1.4.2.8 2002/11/09 22:59:06 easysw Exp $"
|
// End of "$Id: fl_font_xft.cxx,v 1.4.2.9 2002/11/12 20:35:17 easysw Exp $"
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user