aboutsummaryrefslogtreecommitdiff
path: root/dw/fltkui.cc
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2012-10-03 05:51:03 +0000
committercorvid <corvid@lavabit.com>2012-10-03 05:51:03 +0000
commit29c6a369975ca9e40fae0e43880fc64ba98b963e (patch)
treec0106e1fb6878e2b03e25e061ab66b2787f3bd9e /dw/fltkui.cc
parent16d2a80cd16960618df724aba9f098ecb12bd5d2 (diff)
update comments for fl_width(uint_t) workaround
Diffstat (limited to 'dw/fltkui.cc')
-rw-r--r--dw/fltkui.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/dw/fltkui.cc b/dw/fltkui.cc
index f9e6f3f6..7d2f6cc5 100644
--- a/dw/fltkui.cc
+++ b/dw/fltkui.cc
@@ -568,8 +568,8 @@ void FltkEntryResource::sizeRequest (core::Requisition *requisition)
if (displayed() && style) {
FltkFont *font = (FltkFont*)style->font;
fl_font(font->font,font->size);
- /* WORKAROUND: fl_width(uint_t) is not working on non-xft X.
- * Reported to FLTK as STR #2688 */
+ // WORKAROUND: A bug with fl_width(uint_t) on non-xft X was present in
+ // 1.3.0 (STR #2688).
requisition->width =
(int)fl_width ("n")
* (maxLength == UNLIMITED_MAX_LENGTH ? 10 : maxLength)
@@ -691,8 +691,8 @@ void FltkMultiLineTextResource::sizeRequest (core::Requisition *requisition)
if (style) {
FltkFont *font = (FltkFont*)style->font;
fl_font(font->font,font->size);
- /* WORKAROUND: fl_width(uint_t) is not working on non-xft X.
- * Reported to FLTK as STR #2688 */
+ // WORKAROUND: A bug with fl_width(uint_t) on non-xft X was present in
+ // 1.3.0 (STR #2688).
requisition->width =
(int)fl_width ("n") * numCols + 2 * RELIEF_X_THICKNESS;
requisition->ascent =