forked from AuroraMiddleware/gtk
Fix problem with precendence of >> and & which was keeping composite_color
2000-03-27 Owen Taylor <otaylor@redhat.com> * gdk-pixbuf/pixops/pixops.c: Fix problem with precendence of >> and & which was keeping composite_color from working with non-gray images.
This commit is contained in:
parent
a6e85956d2
commit
06aed52437
@ -1,3 +1,9 @@
|
|||||||
|
2000-03-27 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gdk-pixbuf/pixops/pixops.c: Fix problem with
|
||||||
|
precendence of >> and & which was keeping composite_color
|
||||||
|
from working with non-gray images.
|
||||||
|
|
||||||
2000-03-08 Jonathan Blandford <jrb@redhat.com>
|
2000-03-08 Jonathan Blandford <jrb@redhat.com>
|
||||||
|
|
||||||
* gdk-pixbuf/io-gif.c (gdk_pixbuf__gif_image_load): free the context.
|
* gdk-pixbuf/io-gif.c (gdk_pixbuf__gif_image_load): free the context.
|
||||||
|
@ -249,22 +249,22 @@ pixops_composite_color_nearest (art_u8 *dest_buf,
|
|||||||
|
|
||||||
if (((i + check_y) >> check_shift) & 1)
|
if (((i + check_y) >> check_shift) & 1)
|
||||||
{
|
{
|
||||||
r1 = color2 & 0xff0000 >> 16;
|
r1 = (color2 & 0xff0000) >> 16;
|
||||||
g1 = color2 & 0xff00 >> 8;
|
g1 = (color2 & 0xff00) >> 8;
|
||||||
b1 = color2 & 0xff;
|
b1 = color2 & 0xff;
|
||||||
|
|
||||||
r2 = color1 & 0xff0000 >> 16;
|
r2 = (color1 & 0xff0000) >> 16;
|
||||||
g2 = color1 & 0xff00 >> 8;
|
g2 = (color1 & 0xff00) >> 8;
|
||||||
b2 = color1 & 0xff;
|
b2 = color1 & 0xff;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
r1 = color1 & 0xff0000 >> 16;
|
r1 = (color1 & 0xff0000) >> 16;
|
||||||
g1 = color1 & 0xff00 >> 8;
|
g1 = (color1 & 0xff00) >> 8;
|
||||||
b1 = color1 & 0xff;
|
b1 = color1 & 0xff;
|
||||||
|
|
||||||
r2 = color2 & 0xff0000 >> 16;
|
r2 = (color2 & 0xff0000) >> 16;
|
||||||
g2 = color2 & 0xff00 >> 8;
|
g2 = (color2 & 0xff00) >> 8;
|
||||||
b2 = color2 & 0xff;
|
b2 = color2 & 0xff;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -512,14 +512,14 @@ composite_pixel_color (art_u8 *dest, int dest_x, int dest_channels, int dest_has
|
|||||||
|
|
||||||
if ((dest_x >> check_shift) & 1)
|
if ((dest_x >> check_shift) & 1)
|
||||||
{
|
{
|
||||||
dest_r = color2 & 0xff0000 >> 16;
|
dest_r = (color2 & 0xff0000) >> 16;
|
||||||
dest_g = color2 & 0xff00 >> 8;
|
dest_g = (color2 & 0xff00) >> 8;
|
||||||
dest_b = color2 & 0xff;
|
dest_b = color2 & 0xff;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dest_r = color1 & 0xff0000 >> 16;
|
dest_r = (color1 & 0xff0000) >> 16;
|
||||||
dest_g = color1 & 0xff00 >> 8;
|
dest_g = (color1 & 0xff00) >> 8;
|
||||||
dest_b = color1 & 0xff;
|
dest_b = color1 & 0xff;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -548,12 +548,12 @@ composite_line_color (int *weights, int n_x, int n_y,
|
|||||||
|
|
||||||
g_return_val_if_fail (check_size != 0, dest);
|
g_return_val_if_fail (check_size != 0, dest);
|
||||||
|
|
||||||
dest_r1 = color1 & 0xff0000 >> 16;
|
dest_r1 = (color1 & 0xff0000) >> 16;
|
||||||
dest_g1 = color1 & 0xff00 >> 8;
|
dest_g1 = (color1 & 0xff00) >> 8;
|
||||||
dest_b1 = color1 & 0xff;
|
dest_b1 = color1 & 0xff;
|
||||||
|
|
||||||
dest_r2 = color2 & 0xff0000 >> 16;
|
dest_r2 = (color2 & 0xff0000) >> 16;
|
||||||
dest_g2 = color2 & 0xff00 >> 8;
|
dest_g2 = (color2 & 0xff00) >> 8;
|
||||||
dest_b2 = color2 & 0xff;
|
dest_b2 = color2 & 0xff;
|
||||||
|
|
||||||
while (dest < dest_end)
|
while (dest < dest_end)
|
||||||
|
Loading…
Reference in New Issue
Block a user