Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Oleksii Turkot
CrystFEL
Commits
9b97a67a
Commit
9b97a67a
authored
Feb 04, 2012
by
Thomas White
Committed by
Thomas White
Feb 22, 2012
Browse files
hdfsee: More rings, and fix a simple bug
parent
b26221fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/dw-hdfsee.c
View file @
9b97a67a
...
...
@@ -255,10 +255,15 @@ static int draw_stuff(cairo_surface_t *surf, DisplayWindow *dw)
show_ring
(
cr
,
dw
,
5.0e-10
,
"5A"
,
&
basic_m
,
0
.
0
,
1
.
0
,
0
.
0
);
show_ring
(
cr
,
dw
,
4.0e-10
,
"4A"
,
&
basic_m
,
0
.
0
,
1
.
0
,
0
.
0
);
//show_ring(cr, dw, 3.0e-10, "3A", &basic_m);
//show_ring(cr, dw, 2.0e-10, "2A", &basic_m);
//show_ring(cr, dw, 1.0e-10, "1A", &basic_m);
0
.
2
,
1
.
0
,
0
.
2
);
show_ring
(
cr
,
dw
,
3.0e-10
,
"3A"
,
&
basic_m
,
0
.
4
,
1
.
0
,
0
.
4
);
show_ring
(
cr
,
dw
,
2.0e-10
,
"2A"
,
&
basic_m
,
0
.
6
,
1
.
0
,
0
.
6
);
show_ring
(
cr
,
dw
,
1.0e-10
,
"1A"
,
&
basic_m
,
0
.
8
,
1
.
0
,
0
.
8
);
show_ring
(
cr
,
dw
,
1.0e-10
,
"0.5A"
,
&
basic_m
,
1
.
0
,
1
.
0
,
1
.
0
);
}
else
{
int
i
;
for
(
i
=
0
;
i
<
dw
->
n_rings
;
i
++
)
{
...
...
src/hdfsee.c
View file @
9b97a67a
...
...
@@ -126,7 +126,7 @@ int main(int argc, char *argv[])
gtk_init
(
&
argc
,
&
argv
);
/* Short options */
while
((
c
=
getopt_long
(
argc
,
argv
,
"hp:b:i:c:e:g:2:"
,
while
((
c
=
getopt_long
(
argc
,
argv
,
"hp:b:i:c:e:g:2:
r:
"
,
longopts
,
NULL
))
!=
-
1
)
{
char
*
test
;
...
...
@@ -175,6 +175,7 @@ int main(int argc, char *argv[])
ERROR
(
"Ring size must be numerical.
\n
"
);
return
1
;
}
break
;
case
'r'
:
config_showrings
=
1
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment