Fix multi-leg promotions
[xboard.git] / winboard / wsnap.h
index 5fb226e..0b5b117 100644 (file)
@@ -1,43 +1,46 @@
-/*
- * wsnap.h -- Smart "snapping" for window moving and sizing
- *
- * Author: Alessandro Scotti
- *
- * ------------------------------------------------------------------------
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- * ------------------------------------------------------------------------
- */
-#ifndef WSNAP_H_
-#define WSNAP_H_
-
-#include <windows.h>
-
-#define MAX_SNAP_POINTS     12
-
-#define SNAP_DISTANCE       4
-
-typedef struct {
-    int x_grid[ MAX_SNAP_POINTS ];
-    int x_grid_len;
-    int y_grid[ MAX_SNAP_POINTS ];
-    int y_grid_len;
-} SnapData;
-
-LRESULT OnEnterSizeMove( SnapData * snapData, HWND hWnd, WPARAM wParam, LPARAM lParam );
-LRESULT OnMoving( SnapData * snapData, HWND hWnd, WPARAM wParam, LPARAM lParam );
-LRESULT OnSizing( SnapData * snapData, HWND hWnd, WPARAM wParam, LPARAM lParam );
-LRESULT OnExitSizeMove( SnapData * snapData, HWND hWnd, WPARAM wParam, LPARAM lParam );
-
-#endif // WSNAP_H_
+/*\r
+ * Smart "snapping" for window moving and sizing\r
+ *\r
+ * Author: Alessandro Scotti (Dec 2005)\r
+ *\r
+ * Copyright 2005 Alessandro Scotti\r
+ *\r
+ * ------------------------------------------------------------------------\r
+ * GNU XBoard is free software: you can redistribute it and/or modify\r
+ * it under the terms of the GNU General Public License as published by\r
+ * the Free Software Foundation, either version 3 of the License, or (at\r
+ * your option) any later version.\r
+ *\r
+ * GNU XBoard is distributed in the hope that it will be useful, but\r
+ * WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\r
+ * General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License\r
+ * along with this program. If not, see http://www.gnu.org/licenses/.  *\r
+ *\r
+ *------------------------------------------------------------------------\r
+ ** See the file ChangeLog for a revision history.  */\r
+\r
+#ifndef WSNAP_H_\r
+#define WSNAP_H_\r
+\r
+#include <windows.h>\r
+\r
+#define MAX_SNAP_POINTS     12\r
+\r
+#define SNAP_DISTANCE       4\r
+\r
+typedef struct {\r
+    int x_grid[ MAX_SNAP_POINTS ];\r
+    int x_grid_len;\r
+    int y_grid[ MAX_SNAP_POINTS ];\r
+    int y_grid_len;\r
+} SnapData;\r
+\r
+LRESULT OnEnterSizeMove( SnapData * snapData, HWND hWnd, WPARAM wParam, LPARAM lParam );\r
+LRESULT OnMoving( SnapData * snapData, HWND hWnd, WPARAM wParam, LPARAM lParam );\r
+LRESULT OnSizing( SnapData * snapData, HWND hWnd, WPARAM wParam, LPARAM lParam );\r
+LRESULT OnExitSizeMove( SnapData * snapData, HWND hWnd, WPARAM wParam, LPARAM lParam );\r
+\r
+#endif // WSNAP_H_\r