From c5baa8dac312012a227a514ec57bd29007eb276f Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 20 Nov 2012 12:29:46 +0000 Subject: [PATCH] Removed useless tests of whether unsigned Fl_Color is < 0 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9727 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_show_colormap.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fl_show_colormap.cxx b/src/fl_show_colormap.cxx index 7e5531525..a448956c6 100644 --- a/src/fl_show_colormap.cxx +++ b/src/fl_show_colormap.cxx @@ -49,7 +49,7 @@ ColorMenu::ColorMenu(Fl_Color oldcol) : } void ColorMenu::drawbox(Fl_Color c) { - if (c < 0 || c > 255) return; + if (c > 255) return; int X = (c%8)*BOXSIZE+BORDER; int Y = (c/8)*BOXSIZE+BORDER; #if BORDER_WIDTH < 3 @@ -129,7 +129,7 @@ extern char fl_override_redirect; // hack for menus #pragma optimize("a",off) // needed to get the done check to work #endif Fl_Color ColorMenu::run() { - if (which < 0 || which > 255) { + if (which > 255) { position(Fl::event_x_root()-w()/2, Fl::event_y_root()-y()/2); } else { position(Fl::event_x_root()-(initial%8)*BOXSIZE-BOXSIZE/2-BORDER,