Author: manolo
Date: 2012-11-20 04:29:46 -0800 (Tue, 20 Nov 2012)
New Revision: 9727
Log:
Removed useless tests of whether unsigned Fl_Color is < 0

Modified:
   branches/branch-1.3/src/fl_show_colormap.cxx

Modified: branches/branch-1.3/src/fl_show_colormap.cxx
===================================================================
--- branches/branch-1.3/src/fl_show_colormap.cxx        2012-11-17 15:01:01 UTC 
(rev 9726)
+++ branches/branch-1.3/src/fl_show_colormap.cxx        2012-11-20 12:29:46 UTC 
(rev 9727)
@@ -49,7 +49,7 @@
 }
 
 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 @@
 #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,

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to