summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>1999-02-25 20:05:30 +0000
committerBill Spitzak <spitzak@gmail.com>1999-02-25 20:05:30 +0000
commitf89b5d0cf602e61030bbadce846e45686dab11fa (patch)
tree24d60d4e2c07bdc2b92f12c29837667f9a137ee1
parenta53a5cb978b1109fc1c61f364e67dc60b9c21d98 (diff)
Fixed glpuzzle so you can move the pieces.
Added commented-out line to fl_input that could maybe fix highlight confusion git-svn-id: file:///fltk/svn/fltk/trunk@343 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--src/Fl_Input_.cxx5
-rw-r--r--test/glpuzzle.cxx6
2 files changed, 6 insertions, 5 deletions
diff --git a/src/Fl_Input_.cxx b/src/Fl_Input_.cxx
index d4b68f796..e83fdcf2f 100644
--- a/src/Fl_Input_.cxx
+++ b/src/Fl_Input_.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Input_.cxx,v 1.15 1999/01/13 15:57:38 mike Exp $"
+// "$Id: Fl_Input_.cxx,v 1.16 1999/02/25 20:05:29 bill Exp $"
//
// Common input widget routines for the Fast Light Tool Kit (FLTK).
//
@@ -621,6 +621,7 @@ int Fl_Input_::handletext(int event, int X, int Y, int W, int H) {
case FL_SELECTIONCLEAR:
minimal_update(mark_, position_);
+ // mark_ = position_;
return 1;
case FL_PASTE: {
@@ -735,5 +736,5 @@ Fl_Input_::~Fl_Input_() {
}
//
-// End of "$Id: Fl_Input_.cxx,v 1.15 1999/01/13 15:57:38 mike Exp $".
+// End of "$Id: Fl_Input_.cxx,v 1.16 1999/02/25 20:05:29 bill Exp $".
//
diff --git a/test/glpuzzle.cxx b/test/glpuzzle.cxx
index 0778bf2b7..87c89206b 100644
--- a/test/glpuzzle.cxx
+++ b/test/glpuzzle.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: glpuzzle.cxx,v 1.7 1999/02/22 21:11:25 mike Exp $"
+// "$Id: glpuzzle.cxx,v 1.8 1999/02/25 20:05:30 bill Exp $"
//
// OpenGL puzzle demo for the Fast Light Tool Kit (FLTK).
//
@@ -802,7 +802,7 @@ selectPiece(int mousex, int mousey)
return 0;
}
closest = 0;
- dist = 2147483647;
+ dist = 0xFFFFFFFFU; //2147483647;
while (hits) {
if (selectBuf[(hits - 1) * 4 + 1] < dist) {
dist = selectBuf[(hits - 1) * 4 + 1];
@@ -1479,5 +1479,5 @@ main(int argc, char **argv)
#endif // added for fltk's distribution
//
-// End of "$Id: glpuzzle.cxx,v 1.7 1999/02/22 21:11:25 mike Exp $".
+// End of "$Id: glpuzzle.cxx,v 1.8 1999/02/25 20:05:30 bill Exp $".
//