summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2010-04-05 09:10:50 +0000
committerMatthias Melcher <fltk@matthiasm.com>2010-04-05 09:10:50 +0000
commitdcdc4439cc1935c1c796da9007c9369f81b10206 (patch)
tree9600007434f8262c54482e26bd7e1a5fbc00b3fe
parente37577eeb88a44d61671e700f14ab5233dfa9c72 (diff)
STR 2108: added warning to fl_rect documentation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7425 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--FL/fl_draw.H6
1 files changed, 5 insertions, 1 deletions
diff --git a/FL/fl_draw.H b/FL/fl_draw.H
index 7c4168404..4a9c1fec3 100644
--- a/FL/fl_draw.H
+++ b/FL/fl_draw.H
@@ -199,7 +199,11 @@ enum {
// rectangles tweaked to exactly fill the pixel rectangle:
-/** Draws a 1-pixel border \e inside the given bounding box */
+/**
+ Draws a 1-pixel border \e inside the given bounding box.
+ This function is meant for quick drawing of simple boxes. The behavior is
+ undefined for line widths that are not 1.
+ */
inline void fl_rect(int x, int y, int w, int h) { fl_device->rect(x,y,w,h); };
/** Draws with passed color a 1-pixel border \e inside the given bounding box */