aboutsummaryrefslogtreecommitdiff
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
parent16d2a80cd16960618df724aba9f098ecb12bd5d2 (diff)
update comments for fl_width(uint_t) workaround
-rw-r--r--dw/fltkplatform.cc4
-rw-r--r--dw/fltkui.cc8
2 files changed, 6 insertions, 6 deletions
diff --git a/dw/fltkplatform.cc b/dw/fltkplatform.cc
index 099c449c..fecd76a7 100644
--- a/dw/fltkplatform.cc
+++ b/dw/fltkplatform.cc
@@ -123,8 +123,8 @@ FltkFont::FltkFont (core::style::FontAttrs *attrs)
font = family->get (fa);
fl_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).
spaceWidth = misc::max(0, (int)fl_width(" ") + letterSpacing);
int xx, xy, xw, xh;
fl_text_extents("x", xx, xy, xw, xh);
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 =