summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2012-11-20 12:29:46 +0000
committerManolo Gouy <Manolo>2012-11-20 12:29:46 +0000
commitc5baa8dac312012a227a514ec57bd29007eb276f (patch)
treecc1c2b6e592a5463b6eb20db91b005780c02afe3 /src
parent98d5dd690de87579720aa0e1bb803a9b433a9729 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/fl_show_colormap.cxx4
1 files 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,