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
gtk
Commits
4494b086
Commit
4494b086
authored
Oct 07, 2002
by
Bill Haneman
Browse files
gdk_image_get_pixel, gdk_image_put_pixel: Fixed sense of bounds checks.
parent
285c8f78
Changes
10
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
4494b086
Mon Oct 7 16:07:52 2002 Bill Haneman <bill.haneman@sun.com>
* gdk/x11/gdkimage-x11.c gdk/linux-fb/gdkimage-x11.c
gdk/win32/gdkimage-x11.c: (gdk_image_get_pixel):
(gdk_image_put_pixel): Fixed sense of bounds checks.
Sun Oct 6 21:23:29 2002 Manish Singh <yosh@gimp.org>
* gtk/gtkcontainer.[ch] gtk/gtkbox.[ch] gtk/gtkhbox.[ch]
...
...
ChangeLog.pre-2-10
View file @
4494b086
Mon Oct 7 16:07:52 2002 Bill Haneman <bill.haneman@sun.com>
* gdk/x11/gdkimage-x11.c gdk/linux-fb/gdkimage-x11.c
gdk/win32/gdkimage-x11.c: (gdk_image_get_pixel):
(gdk_image_put_pixel): Fixed sense of bounds checks.
Sun Oct 6 21:23:29 2002 Manish Singh <yosh@gimp.org>
* gtk/gtkcontainer.[ch] gtk/gtkbox.[ch] gtk/gtkhbox.[ch]
...
...
ChangeLog.pre-2-2
View file @
4494b086
Mon Oct 7 16:07:52 2002 Bill Haneman <bill.haneman@sun.com>
* gdk/x11/gdkimage-x11.c gdk/linux-fb/gdkimage-x11.c
gdk/win32/gdkimage-x11.c: (gdk_image_get_pixel):
(gdk_image_put_pixel): Fixed sense of bounds checks.
Sun Oct 6 21:23:29 2002 Manish Singh <yosh@gimp.org>
* gtk/gtkcontainer.[ch] gtk/gtkbox.[ch] gtk/gtkhbox.[ch]
...
...
ChangeLog.pre-2-4
View file @
4494b086
Mon Oct 7 16:07:52 2002 Bill Haneman <bill.haneman@sun.com>
* gdk/x11/gdkimage-x11.c gdk/linux-fb/gdkimage-x11.c
gdk/win32/gdkimage-x11.c: (gdk_image_get_pixel):
(gdk_image_put_pixel): Fixed sense of bounds checks.
Sun Oct 6 21:23:29 2002 Manish Singh <yosh@gimp.org>
* gtk/gtkcontainer.[ch] gtk/gtkbox.[ch] gtk/gtkhbox.[ch]
...
...
ChangeLog.pre-2-6
View file @
4494b086
Mon Oct 7 16:07:52 2002 Bill Haneman <bill.haneman@sun.com>
* gdk/x11/gdkimage-x11.c gdk/linux-fb/gdkimage-x11.c
gdk/win32/gdkimage-x11.c: (gdk_image_get_pixel):
(gdk_image_put_pixel): Fixed sense of bounds checks.
Sun Oct 6 21:23:29 2002 Manish Singh <yosh@gimp.org>
* gtk/gtkcontainer.[ch] gtk/gtkbox.[ch] gtk/gtkhbox.[ch]
...
...
ChangeLog.pre-2-8
View file @
4494b086
Mon Oct 7 16:07:52 2002 Bill Haneman <bill.haneman@sun.com>
* gdk/x11/gdkimage-x11.c gdk/linux-fb/gdkimage-x11.c
gdk/win32/gdkimage-x11.c: (gdk_image_get_pixel):
(gdk_image_put_pixel): Fixed sense of bounds checks.
Sun Oct 6 21:23:29 2002 Manish Singh <yosh@gimp.org>
* gtk/gtkcontainer.[ch] gtk/gtkbox.[ch] gtk/gtkhbox.[ch]
...
...
gdk/linux-fb/gdkimage-fb.c
View file @
4494b086
...
...
@@ -264,8 +264,8 @@ gdk_image_get_pixel (GdkImage *image,
GdkImagePrivateFB
*
private
;
g_return_val_if_fail
(
image
!=
NULL
,
0
);
g_return_val_if_fail
(
x
<
0
||
x
>=
image
->
width
,
0
);
g_return_val_if_fail
(
y
<
0
||
y
>=
image
->
height
,
0
);
g_return_val_if_fail
(
x
>=
0
&&
x
<
image
->
width
,
0
);
g_return_val_if_fail
(
y
>=
0
&&
y
<
image
->
height
,
0
);
private
=
GDK_IMAGE_PRIVATE_DATA
(
image
);
...
...
@@ -298,8 +298,8 @@ gdk_image_put_pixel (GdkImage *image,
guchar
*
ptr
=
image
->
mem
;
g_return_if_fail
(
image
!=
NULL
);
g_return_if_fail
(
x
<
0
||
x
>=
image
->
width
);
g_return_if_fail
(
y
<
0
||
y
>=
image
->
height
);
g_return_if_fail
(
x
>=
0
&&
x
<
image
->
width
);
g_return_if_fail
(
y
>=
0
&&
y
<
image
->
height
);
switch
(
image
->
depth
)
{
...
...
gdk/win32/gdkimage-win32.c
View file @
4494b086
...
...
@@ -265,8 +265,8 @@ gdk_image_get_pixel (GdkImage *image,
guchar
*
pixelp
;
g_return_val_if_fail
(
image
!=
NULL
,
0
);
g_return_val_if_fail
(
x
<
0
||
x
>=
image
->
width
,
0
);
g_return_val_if_fail
(
y
<
0
||
y
>=
image
->
height
,
0
);
g_return_val_if_fail
(
x
>=
0
&&
x
<
image
->
width
,
0
);
g_return_val_if_fail
(
y
>=
0
&&
y
<
image
->
height
,
0
);
if
(
!
(
x
>=
0
&&
x
<
image
->
width
&&
y
>=
0
&&
y
<
image
->
height
))
return
0
;
...
...
@@ -313,8 +313,8 @@ gdk_image_put_pixel (GdkImage *image,
guchar
*
pixelp
;
g_return_if_fail
(
image
!=
NULL
);
g_return_if_fail
(
x
<
0
||
x
>=
image
->
width
);
g_return_if_fail
(
y
<
0
||
y
>=
image
->
height
);
g_return_if_fail
(
x
>=
0
&&
x
<
image
->
width
);
g_return_if_fail
(
y
>=
0
&&
y
<
image
->
height
);
if
(
!
(
x
>=
0
&&
x
<
image
->
width
&&
y
>=
0
&&
y
<
image
->
height
))
return
;
...
...
gdk/x11/gdkdrawable-x11.c
View file @
4494b086
...
...
@@ -1255,7 +1255,7 @@ draw_with_images (GdkDrawable *drawable,
GDK_PIXMAP_XID
(
pix
),
mask_format
,
0
,
NULL
);
dest_pict
=
gdk_x11_drawable_get_picture
(
drawable
);
dest_pict
=
gdk_x11_drawable_get_picture
(
drawable
);
pix_gc
=
gdk_gc_new
(
pix
);
...
...
gdk/x11/gdkimage-x11.c
View file @
4494b086
...
...
@@ -697,8 +697,8 @@ gdk_image_get_pixel (GdkImage *image,
GdkImagePrivateX11
*
private
;
g_return_val_if_fail
(
GDK_IS_IMAGE
(
image
),
0
);
g_return_val_if_fail
(
x
<
0
||
x
>=
image
->
width
,
0
);
g_return_val_if_fail
(
y
<
0
||
y
>=
image
->
height
,
0
);
g_return_val_if_fail
(
x
>=
0
&&
x
<
image
->
width
,
0
);
g_return_val_if_fail
(
y
>=
0
&&
y
<
image
->
height
,
0
);
private
=
PRIVATE_DATA
(
image
);
...
...
@@ -719,8 +719,8 @@ gdk_image_put_pixel (GdkImage *image,
GdkImagePrivateX11
*
private
;
g_return_if_fail
(
GDK_IS_IMAGE
(
image
));
g_return_if_fail
(
x
<
0
||
x
>=
image
->
width
);
g_return_if_fail
(
y
<
0
||
y
>=
image
->
height
);
g_return_if_fail
(
x
>=
0
&&
x
<
image
->
width
);
g_return_if_fail
(
y
>=
0
&&
y
<
image
->
height
);
private
=
PRIVATE_DATA
(
image
);
...
...
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