summaryrefslogtreecommitdiff
path: root/FL/Fl.H
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2011-01-22 22:38:55 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2011-01-22 22:38:55 +0000
commit1c38a0f2f7187322959e8ff165ae4d891acf9cae (patch)
tree035a30a0d129be6eac01542a6bf59b2da07841e2 /FL/Fl.H
parent00710928d41755a31c2c7a97c7bfea368032ac6f (diff)
Tweaks to silence more MS compiler warnings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8300 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl.H')
-rw-r--r--FL/Fl.H4
1 files changed, 2 insertions, 2 deletions
diff --git a/FL/Fl.H b/FL/Fl.H
index 874769354..379eec84e 100644
--- a/FL/Fl.H
+++ b/FL/Fl.H
@@ -940,7 +940,7 @@ public:
non-text widgets. The default mode is to enable keyboard focus
for all widgets.
*/
- static void visible_focus(int v) { option(OPTION_VISIBLE_FOCUS, v); }
+ static void visible_focus(int v) { option(OPTION_VISIBLE_FOCUS, (v!=0)); }
/**
Gets or sets the visible keyboard focus on buttons and other
non-text widgets. The default mode is to enable keyboard focus
@@ -955,7 +955,7 @@ public:
be dragged from text fields or dragged within a text field as a
cut/paste shortcut.
*/
- static void dnd_text_ops(int v) { option(OPTION_DND_TEXT, v); }
+ static void dnd_text_ops(int v) { option(OPTION_DND_TEXT, (v!=0)); }
/**
Gets or sets whether drag and drop text operations are
supported. This specifically affects whether selected text can