summaryrefslogtreecommitdiff
path: root/src/fl_rect.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-03-06 18:11:01 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-03-06 18:11:01 +0000
commite52b682a995fe2d7662b3f10730420996ccbb146 (patch)
treed7bbbd4de9e9728191bb2407e763437366806b00 /src/fl_rect.cxx
parent394286265a96aa27fbedc0cd58c5bb33366123b3 (diff)
Add Xft support to 1.1.x.
TODO: Fl::set_fonts() should add all of the fonts returned by Xft; right now it is a no-op. BUG: Getting X messages like "XRequest.155: 202 0x260002b" for some reason on my system. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1987 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_rect.cxx')
-rw-r--r--src/fl_rect.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/fl_rect.cxx b/src/fl_rect.cxx
index 251efc3ef..20ca1563a 100644
--- a/src/fl_rect.cxx
+++ b/src/fl_rect.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: fl_rect.cxx,v 1.10.2.4.2.7 2002/01/01 15:11:32 easysw Exp $"
+// "$Id: fl_rect.cxx,v 1.10.2.4.2.8 2002/03/06 18:11:01 easysw Exp $"
//
// Rectangle drawing routines for the Fast Light Tool Kit (FLTK).
//
@@ -373,6 +373,11 @@ void fl_clip_region(Fl_Region r) {
fl_restore_clip();
}
+// Return the current clip region...
+Fl_Region fl_clip_region() {
+ return rstack[rstackptr];
+}
+
// Intersect & push a new clip rectangle:
void fl_clip(int x, int y, int w, int h) {
Fl_Region r;
@@ -503,5 +508,5 @@ int fl_clip_box(int x, int y, int w, int h, int& X, int& Y, int& W, int& H){
}
//
-// End of "$Id: fl_rect.cxx,v 1.10.2.4.2.7 2002/01/01 15:11:32 easysw Exp $".
+// End of "$Id: fl_rect.cxx,v 1.10.2.4.2.8 2002/03/06 18:11:01 easysw Exp $".
//