mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 16:46:52 +08:00
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
This commit is contained in:
+3
-3
@@ -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 $".
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user