Commit 77b19d2d authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

Shift the range to smaller brushes. (1/8 - 25 pixel radius, instead of

Thu Jun 18 23:11:36 1998  Owen Taylor  <otaylor@gtk.org>

	* app/ink.c: Shift the range to smaller brushes.
	(1/8 - 25 pixel radius, instead of 1-100 pixels)
parent f075fec7
Thu Jun 18 23:11:36 1998 Owen Taylor <otaylor@gtk.org>
* app/ink.c: Shift the range to smaller brushes.
(1/8 - 25 pixel radius, instead of 1-100 pixels)
Thu Jun 18 18:34:58 PDT 1998 Manish Singh <yosh@gimp.org> Thu Jun 18 18:34:58 PDT 1998 Manish Singh <yosh@gimp.org>
* acconfig.h * acconfig.h
......
...@@ -163,7 +163,7 @@ create_ink_options () ...@@ -163,7 +163,7 @@ create_ink_options ()
label = gtk_label_new ("Size:"); label = gtk_label_new ("Size:");
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 2); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 2);
adj = GTK_ADJUSTMENT (gtk_adjustment_new (8.0, 0.0, 100.0, 1.0, 10.0, 0.0)); adj = GTK_ADJUSTMENT (gtk_adjustment_new (4.0, 0.0, 25.0, 1.0, 10.0, 0.0));
slider = gtk_hscale_new (adj); slider = gtk_hscale_new (adj);
gtk_box_pack_start (GTK_BOX (hbox), slider, TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX (hbox), slider, TRUE, TRUE, 0);
gtk_scale_set_value_pos (GTK_SCALE (slider), GTK_POS_TOP); gtk_scale_set_value_pos (GTK_SCALE (slider), GTK_POS_TOP);
...@@ -385,7 +385,7 @@ ink_pen_ellipse (gdouble x_center, gdouble y_center, ...@@ -385,7 +385,7 @@ ink_pen_ellipse (gdouble x_center, gdouble y_center,
double x,y; double x,y;
size = ink_options->size * (1 + ink_options->sensitivity * (2*pressure - 1)); size = ink_options->size * (1 + ink_options->sensitivity * (2*pressure - 1));
if (size < 1) size = 1; if (size*SUBSAMPLE < 1) size = 1/SUBSAMPLE;
/* Add brush angle/aspect to title vectorially */ /* Add brush angle/aspect to title vectorially */
......
...@@ -163,7 +163,7 @@ create_ink_options () ...@@ -163,7 +163,7 @@ create_ink_options ()
label = gtk_label_new ("Size:"); label = gtk_label_new ("Size:");
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 2); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 2);
adj = GTK_ADJUSTMENT (gtk_adjustment_new (8.0, 0.0, 100.0, 1.0, 10.0, 0.0)); adj = GTK_ADJUSTMENT (gtk_adjustment_new (4.0, 0.0, 25.0, 1.0, 10.0, 0.0));
slider = gtk_hscale_new (adj); slider = gtk_hscale_new (adj);
gtk_box_pack_start (GTK_BOX (hbox), slider, TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX (hbox), slider, TRUE, TRUE, 0);
gtk_scale_set_value_pos (GTK_SCALE (slider), GTK_POS_TOP); gtk_scale_set_value_pos (GTK_SCALE (slider), GTK_POS_TOP);
...@@ -385,7 +385,7 @@ ink_pen_ellipse (gdouble x_center, gdouble y_center, ...@@ -385,7 +385,7 @@ ink_pen_ellipse (gdouble x_center, gdouble y_center,
double x,y; double x,y;
size = ink_options->size * (1 + ink_options->sensitivity * (2*pressure - 1)); size = ink_options->size * (1 + ink_options->sensitivity * (2*pressure - 1));
if (size < 1) size = 1; if (size*SUBSAMPLE < 1) size = 1/SUBSAMPLE;
/* Add brush angle/aspect to title vectorially */ /* Add brush angle/aspect to title vectorially */
......
...@@ -163,7 +163,7 @@ create_ink_options () ...@@ -163,7 +163,7 @@ create_ink_options ()
label = gtk_label_new ("Size:"); label = gtk_label_new ("Size:");
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 2); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 2);
adj = GTK_ADJUSTMENT (gtk_adjustment_new (8.0, 0.0, 100.0, 1.0, 10.0, 0.0)); adj = GTK_ADJUSTMENT (gtk_adjustment_new (4.0, 0.0, 25.0, 1.0, 10.0, 0.0));
slider = gtk_hscale_new (adj); slider = gtk_hscale_new (adj);
gtk_box_pack_start (GTK_BOX (hbox), slider, TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX (hbox), slider, TRUE, TRUE, 0);
gtk_scale_set_value_pos (GTK_SCALE (slider), GTK_POS_TOP); gtk_scale_set_value_pos (GTK_SCALE (slider), GTK_POS_TOP);
...@@ -385,7 +385,7 @@ ink_pen_ellipse (gdouble x_center, gdouble y_center, ...@@ -385,7 +385,7 @@ ink_pen_ellipse (gdouble x_center, gdouble y_center,
double x,y; double x,y;
size = ink_options->size * (1 + ink_options->sensitivity * (2*pressure - 1)); size = ink_options->size * (1 + ink_options->sensitivity * (2*pressure - 1));
if (size < 1) size = 1; if (size*SUBSAMPLE < 1) size = 1/SUBSAMPLE;
/* Add brush angle/aspect to title vectorially */ /* Add brush angle/aspect to title vectorially */
......
...@@ -163,7 +163,7 @@ create_ink_options () ...@@ -163,7 +163,7 @@ create_ink_options ()
label = gtk_label_new ("Size:"); label = gtk_label_new ("Size:");
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 2); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 2);
adj = GTK_ADJUSTMENT (gtk_adjustment_new (8.0, 0.0, 100.0, 1.0, 10.0, 0.0)); adj = GTK_ADJUSTMENT (gtk_adjustment_new (4.0, 0.0, 25.0, 1.0, 10.0, 0.0));
slider = gtk_hscale_new (adj); slider = gtk_hscale_new (adj);
gtk_box_pack_start (GTK_BOX (hbox), slider, TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX (hbox), slider, TRUE, TRUE, 0);
gtk_scale_set_value_pos (GTK_SCALE (slider), GTK_POS_TOP); gtk_scale_set_value_pos (GTK_SCALE (slider), GTK_POS_TOP);
...@@ -385,7 +385,7 @@ ink_pen_ellipse (gdouble x_center, gdouble y_center, ...@@ -385,7 +385,7 @@ ink_pen_ellipse (gdouble x_center, gdouble y_center,
double x,y; double x,y;
size = ink_options->size * (1 + ink_options->sensitivity * (2*pressure - 1)); size = ink_options->size * (1 + ink_options->sensitivity * (2*pressure - 1));
if (size < 1) size = 1; if (size*SUBSAMPLE < 1) size = 1/SUBSAMPLE;
/* Add brush angle/aspect to title vectorially */ /* Add brush angle/aspect to title vectorially */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment