Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
GNOME
GIMP
Commits
fe876df0
Commit
fe876df0
authored
Jan 25, 1998
by
Manish Singh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Misc fixes for DEC OSF1
-Yosh
parent
6b508113
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
11 deletions
+22
-11
ChangeLog
ChangeLog
+7
-0
libgimp/gimppixelrgn.c
libgimp/gimppixelrgn.c
+1
-1
plug-ins/common/iwarp.c
plug-ins/common/iwarp.c
+6
-4
plug-ins/common/sparkle.c
plug-ins/common/sparkle.c
+1
-1
plug-ins/iwarp/iwarp.c
plug-ins/iwarp/iwarp.c
+6
-4
plug-ins/sparkle/sparkle.c
plug-ins/sparkle/sparkle.c
+1
-1
No files found.
ChangeLog
View file @
fe876df0
Sun Jan 25 13:28:28 PST 1998 Manish Singh <yosh@gimp.org>
* libgimp/gimppixelrgn.c
* plug-ins/iwarp/iwarp.c
* plug-ins/sparkle/sparkle.c: Misc portability fixes for
DEC OSF1 (gimp-joke-980109-0)
Sun Jan 25 02:24:03 PST 1998 Manish Singh <yosh@gimp.org>
* libgimp/*: Placed libgimp under the LGPL
...
...
libgimp/gimppixelrgn.c
View file @
fe876df0
...
...
@@ -157,7 +157,7 @@ gimp_pixel_rgn_get_row (GPixelRgn *pr,
tile
=
gimp_drawable_get_tile2
(
pr
->
drawable
,
pr
->
shadow
,
x
,
y
);
gimp_tile_ref
(
tile
);
tile_data
=
tile
->
data
+
tile
->
bpp
*
(
tile
->
ewidth
*
(
y
%
TILE_HEIGHT
)
+
(
x
%
TILE_WIDTH
));
tile_data
=
tile
->
data
+
(
int
)
tile
->
bpp
*
(
int
)
(
tile
->
ewidth
*
(
int
)
(
y
%
TILE_HEIGHT
)
+
(
x
%
TILE_WIDTH
));
boundary
=
x
+
(
tile
->
ewidth
-
(
x
%
TILE_WIDTH
));
bpp
=
tile
->
bpp
;
...
...
plug-ins/common/iwarp.c
View file @
fe876df0
...
...
@@ -1355,21 +1355,23 @@ iwarp_motion_callback(GtkWidget *widget,
int
x
,
y
;
mb
=
(
GdkEventButton
*
)
event
;
x
=
mb
->
x
;
y
=
mb
->
y
;
switch
(
event
->
type
)
{
case
GDK_BUTTON_PRESS
:
lastx
=
x
;
lasty
=
y
;
lastx
=
mb
->
x
;
lasty
=
mb
->
y
;
break
;
case
GDK_BUTTON_RELEASE
:
if
(
mb
->
state
&
GDK_BUTTON1_MASK
)
{
x
=
mb
->
x
;
y
=
mb
->
y
;
if
(
iwarp_vals
.
do_move
)
iwarp_move
(
x
,
y
,
lastx
,
lasty
);
else
iwarp_deform
(
x
,
y
,
0
.
0
,
0
.
0
);
}
break
;
case
GDK_MOTION_NOTIFY
:
if
(
mb
->
state
&
GDK_BUTTON1_MASK
)
{
x
=
mb
->
x
;
y
=
mb
->
y
;
if
(
iwarp_vals
.
do_move
)
iwarp_move
(
x
,
y
,
lastx
,
lasty
);
else
iwarp_deform
(
x
,
y
,
0
.
0
,
0
.
0
);
lastx
=
x
;
...
...
plug-ins/common/sparkle.c
View file @
fe876df0
...
...
@@ -637,7 +637,7 @@ fspike (GPixelRgn *dest_rgn,
gimp_pixel_rgn_get_pixel
(
dest_rgn
,
pixel
,
x
,
y
);
for
(
b
=
0
;
b
<
bytes
;
b
++
)
val
[
b
]
=
(
gdouble
)
pixel
[
b
]
/
255
.
0
;
val
[
b
]
=
(
gdouble
)
(
gint
)
pixel
[
b
]
/
255
.
0
;
/* increase saturation to full for color image */
if
(
!
gray
)
...
...
plug-ins/iwarp/iwarp.c
View file @
fe876df0
...
...
@@ -1355,21 +1355,23 @@ iwarp_motion_callback(GtkWidget *widget,
int
x
,
y
;
mb
=
(
GdkEventButton
*
)
event
;
x
=
mb
->
x
;
y
=
mb
->
y
;
switch
(
event
->
type
)
{
case
GDK_BUTTON_PRESS
:
lastx
=
x
;
lasty
=
y
;
lastx
=
mb
->
x
;
lasty
=
mb
->
y
;
break
;
case
GDK_BUTTON_RELEASE
:
if
(
mb
->
state
&
GDK_BUTTON1_MASK
)
{
x
=
mb
->
x
;
y
=
mb
->
y
;
if
(
iwarp_vals
.
do_move
)
iwarp_move
(
x
,
y
,
lastx
,
lasty
);
else
iwarp_deform
(
x
,
y
,
0
.
0
,
0
.
0
);
}
break
;
case
GDK_MOTION_NOTIFY
:
if
(
mb
->
state
&
GDK_BUTTON1_MASK
)
{
x
=
mb
->
x
;
y
=
mb
->
y
;
if
(
iwarp_vals
.
do_move
)
iwarp_move
(
x
,
y
,
lastx
,
lasty
);
else
iwarp_deform
(
x
,
y
,
0
.
0
,
0
.
0
);
lastx
=
x
;
...
...
plug-ins/sparkle/sparkle.c
View file @
fe876df0
...
...
@@ -637,7 +637,7 @@ fspike (GPixelRgn *dest_rgn,
gimp_pixel_rgn_get_pixel
(
dest_rgn
,
pixel
,
x
,
y
);
for
(
b
=
0
;
b
<
bytes
;
b
++
)
val
[
b
]
=
(
gdouble
)
pixel
[
b
]
/
255
.
0
;
val
[
b
]
=
(
gdouble
)
(
gint
)
pixel
[
b
]
/
255
.
0
;
/* increase saturation to full for color image */
if
(
!
gray
)
...
...
Write
Preview
Markdown
is supported
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