summaryrefslogtreecommitdiffstats
Unidiff
-rw-r--r--Makefile.am10
-rw-r--r--r/connect.R16
-rw-r--r--src/controller/exp004mouse.c51
-rw-r--r--src/controller/exp004processhits.c16
-rw-r--r--src/controller/exp004reshape.c26
-rw-r--r--src/controller/keyboard.c2
-rw-r--r--src/controller/selection_from_db.sqc9
-rw-r--r--src/controller/selsave.sqc4
-rw-r--r--src/controller/set_ortho.c11
-rw-r--r--src/controller/vis_sel_set.h3
-rw-r--r--src/model/coordinates.h3
-rw-r--r--src/model/exp004base.sqc30
-rw-r--r--src/model/exp004state.h30
-rw-r--r--src/model/selection_info.h11
-rw-r--r--src/model/selection_info_init.c2
-rw-r--r--src/model/selection_info_init.h2
-rw-r--r--src/model/selection_purposes.h22
-rw-r--r--src/model/zoom_info.h5
-rw-r--r--src/model/zoom_info_init.c2
-rw-r--r--src/model/zoom_info_init.h2
-rw-r--r--src/util/pick_convert.c7
-rw-r--r--src/util/sqlinfoprint.c2
-rw-r--r--src/util/sqlinfoprint.h7
-rw-r--r--src/view/exp004geometry.c6
-rw-r--r--src/view/exp004view.c7
25 files changed, 140 insertions, 146 deletions
diff --git a/src/util/pick_convert.c b/src/util/pick_convert.c
index baafcfb..eca819a 100644
--- a/src/util/pick_convert.c
+++ b/src/util/pick_convert.c
@@ -5,8 +5,9 @@
5 */5 */
6#define N 3.06#define N 3.0
77
8void pick_convert (int select_x, int select_y, int x, int y,8void
9 double *c_x, double *c_y, double *w, double *h)9pick_convert (int select_x, int select_y, int x, int y,
10 double *c_x, double *c_y, double *w, double *h)
10{11{
11 /*12 /*
12 * Calculate X and the width.13 * Calculate X and the width.
@@ -14,7 +15,7 @@ void pick_convert (int select_x, int select_y, int x, int y,
14 if (x > select_x)15 if (x > select_x)
15 {16 {
16 *c_x = (x - select_x) / 2.0 + select_x;17 *c_x = (x - select_x) / 2.0 + select_x;
17 *w = x - select_x; 18 *w = x - select_x;
18 }19 }
19 else if (x < select_x)20 else if (x < select_x)
20 {21 {

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.