From dcdc4439cc1935c1c796da9007c9369f81b10206 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Mon, 5 Apr 2010 09:10:50 +0000 Subject: [PATCH] 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 --- FL/fl_draw.H | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 */