Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
GIMP
Commits
323fa245
Commit
323fa245
authored
Apr 03, 1999
by
Asbjørn Pettersen
Browse files
don't use c++ comments
parent
01c74039
Changes
5
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
323fa245
Sat Apr 3 20:42:48 1999 ape@spacetec.no (Asbjorn Pettersen)
* app/paintbrush.c: Skip // comments.
* app/paint_core.c : Use /* */ intead of //. IRIX ver. fails
1999-04-03 Michael Natterer <mitschel@cs.tu-berlin.de>
* app/shear_tool.c: forgot this file. Should compile again now,
...
...
app/paint_core.c
View file @
323fa245
...
...
@@ -528,7 +528,7 @@ paint_core_get_color_from_gradient (PaintCore *paint_core, double gradient_lengt
/* stolen from the fade effect in paintbrush */
/* model this on a gaussian curve */
/
/
position = exp (- y * y * 0.5);
/
*
position = exp (- y * y * 0.5);
*/
position
=
y
/
gradient_length
;
grad_get_color_at
(
position
,
r
,
g
,
b
,
a
);
/* set opacity to zero if this isnt a repeater call */
...
...
app/paintbrush.c
View file @
323fa245
...
...
@@ -165,11 +165,11 @@ create_paint_options (void)
/* this is a little unintuitive, probabaly put the slider */
/* in a frame later with a checkbutton for "use gradients" */
/* and default the gradient length to 10 or something */
#if 0
// hbox = gtk_hbox_new (FALSE, 1);
//gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
//gtk_widget_show(hbox);
#endif
label
=
gtk_label_new
(
_
(
"Gradient Length"
));
...
...
app/tools/paint_core.c
View file @
323fa245
...
...
@@ -528,7 +528,7 @@ paint_core_get_color_from_gradient (PaintCore *paint_core, double gradient_lengt
/* stolen from the fade effect in paintbrush */
/* model this on a gaussian curve */
/
/
position = exp (- y * y * 0.5);
/
*
position = exp (- y * y * 0.5);
*/
position
=
y
/
gradient_length
;
grad_get_color_at
(
position
,
r
,
g
,
b
,
a
);
/* set opacity to zero if this isnt a repeater call */
...
...
app/tools/paintbrush.c
View file @
323fa245
...
...
@@ -165,11 +165,11 @@ create_paint_options (void)
/* this is a little unintuitive, probabaly put the slider */
/* in a frame later with a checkbutton for "use gradients" */
/* and default the gradient length to 10 or something */
#if 0
// hbox = gtk_hbox_new (FALSE, 1);
//gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
//gtk_widget_show(hbox);
#endif
label
=
gtk_label_new
(
_
(
"Gradient Length"
));
...
...
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