aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2012-02-04 15:16:02 -0800
committerThomas White <taw@physics.org>2012-02-22 15:27:45 +0100
commit9b97a67ad4602086a0cb2fd393c70e253b13649c (patch)
treeaed00046ab1b0be99f9a7d9fef4b459da0b0f262 /src
parentb26221fd322e9e5739d895ace3b220633565a89e (diff)
hdfsee: More rings, and fix a simple bug
Diffstat (limited to 'src')
-rw-r--r--src/dw-hdfsee.c13
-rw-r--r--src/hdfsee.c3
2 files changed, 11 insertions, 5 deletions
diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c
index c5e44aff..a2a8751a 100644
--- a/src/dw-hdfsee.c
+++ b/src/dw-hdfsee.c
@@ -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++ ) {
diff --git a/src/hdfsee.c b/src/hdfsee.c
index 49e4b57f..74d38a90 100644
--- a/src/hdfsee.c
+++ b/src/hdfsee.c
@@ -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;