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
056691c5
Commit
056691c5
authored
Nov 18, 1998
by
Raph Levien
Browse files
Some minor ui polishing.
parent
58576d8d
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
056691c5
Tue Nov 17 17:34:34 1998 Raph Levien <raph@acm.org>
* plug-ins/waterselect/waterselect.c: Trying to make the response
a little more polished (i.e. it only picks up paint when you press
down, not when you pick up). Some Gtk 1.0 fixes.
Mon Nov 16 21:46:39 1998 Austin Donnelly <austin@greenend.org.uk>
* app/edit_cmds.c
...
...
plug-ins/waterselect/waterselect.c
View file @
056691c5
...
...
@@ -15,12 +15,6 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* This simple plug-in does an automatic contrast stretch. For each
channel in the image, it finds the minimum and maximum values... it
uses those values to stretch the individual histograms to the full
contrast range. For some images it may do just what you want; for
others it may be total crap :) */
#include
<stdlib.h>
#include
<stdio.h>
...
...
@@ -273,7 +267,7 @@ waterselect_destroy_callback (GtkWidget *widget, void *dummy)
static
gboolean
waterselect_delete_callback
(
GtkWidget
*
widget
,
void
*
dummy
)
{
return
TRU
E
;
return
FALS
E
;
}
static
void
...
...
@@ -357,6 +351,9 @@ draw_brush (GtkWidget *widget, gboolean erase,
{
gdouble
much
;
/* how much pigment to mix in */
if
(
pressure
<
last_pressure
)
last_pressure
=
pressure
;
much
=
sqrt
((
x
-
last_x
)
*
(
x
-
last_x
)
+
(
y
-
last_y
)
*
(
y
-
last_y
)
+
1000
*
(
pressure
-
last_pressure
)
*
(
pressure
-
last_pressure
));
...
...
@@ -446,7 +443,7 @@ motion_notify_event (GtkWidget *widget, GdkEventMotion *event)
coords
=
gdk_input_motion_events
(
event
->
window
,
event
->
deviceid
,
motion_time
,
event
->
time
,
&
nevents
);
erase
=
(
!
(
event
->
state
&
GDK_BUTTON
1
_MASK
))
||
erase
=
(
event
->
state
&
(
GDK_BUTTON
3_MASK
|
GDK_BUTTON4
_MASK
))
||
(
event
->
source
==
GDK_SOURCE_ERASER
);
motion_time
=
event
->
time
;
if
(
coords
)
...
...
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