diff options
Diffstat (limited to 'gui/widget.cpp')
-rw-r--r-- | gui/widget.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gui/widget.cpp b/gui/widget.cpp index f6aedbad76..3788e4d237 100644 --- a/gui/widget.cpp +++ b/gui/widget.cpp @@ -23,6 +23,10 @@ #include "dialog.h" #include "newgui.h" +#ifdef _MSC_VER +# pragma warning( disable : 4068 ) // unknown pragma +#endif + Widget::Widget (Dialog *boss, int x, int y, int w, int h) : _type(0), _boss(boss), _x(x), _y(y), _w(w), _h(h), @@ -57,7 +61,7 @@ void Widget::draw() } // Now perform the actual widget draw - drawWidget(_flags & WIDGET_HILITED); + drawWidget((_flags & WIDGET_HILITED) ? true : false); // Restore x/y if (_flags & WIDGET_BORDER) { |