summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2011-02-08 20:59:46 +0000
committerManolo Gouy <Manolo>2011-02-08 20:59:46 +0000
commit5dab14dafa6dba869c55281c214946934eb10aae (patch)
tree10ffe040135c897a376506b6992083e4978beb61 /FL
parent95db2790d69fb227e78d307f50c41bdc4bee44d0 (diff)
Fix STR #2558: use more consistently FL_NORMAL_SIZE to define the default font size
of interface elements. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8405 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Tooltip.H4
1 files changed, 2 insertions, 2 deletions
diff --git a/FL/Fl_Tooltip.H b/FL/Fl_Tooltip.H
index ef7633c7f..3170fde52 100644
--- a/FL/Fl_Tooltip.H
+++ b/FL/Fl_Tooltip.H
@@ -3,7 +3,7 @@
//
// Tooltip header file for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2010 by Bill Spitzak and others.
+// Copyright 1998-2011 by Bill Spitzak and others.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
@@ -72,7 +72,7 @@ public:
/** Sets the typeface for the tooltip text. */
static void font(Fl_Font i) { font_ = i; }
/** Gets the size of the tooltip text. */
- static Fl_Fontsize size() { return size_; }
+ static Fl_Fontsize size() { return (size_ == -1 ? FL_NORMAL_SIZE : size_); }
/** Sets the size of the tooltip text. */
static void size(Fl_Fontsize s) { size_ = s; }
/** Gets the background color for tooltips. The default background color is a pale yellow. */