From a26f08bb618d3af3e7509c4db8e7233ea515da08 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Thu, 29 Jan 2015 16:56:12 +0000 Subject: Use Fl::is_scheme() where appropriate. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10542 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Slider.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Fl_Slider.cxx') diff --git a/src/Fl_Slider.cxx b/src/Fl_Slider.cxx index 648e3ce4f..705dc9692 100644 --- a/src/Fl_Slider.cxx +++ b/src/Fl_Slider.cxx @@ -3,7 +3,7 @@ // // Slider widget for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2011 by Bill Spitzak and others. +// Copyright 1998-2015 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -163,8 +163,8 @@ void Fl_Slider::draw(int X, int Y, int W, int H) { } else { if (wsl>0 && hsl>0) draw_box(box1, xsl, ysl, wsl, hsl, selection_color()); - if (type()!=FL_HOR_FILL_SLIDER && type() != FL_VERT_FILL_SLIDER && - Fl::scheme_ && !strcmp(Fl::scheme_, "gtk+")) { + if (type() != FL_HOR_FILL_SLIDER && type() != FL_VERT_FILL_SLIDER && + Fl::is_scheme("gtk+")) { if (W>H && wsl>(hsl+8)) { // Draw horizontal grippers int yy, hh; -- cgit v1.2.3