forked from AuroraMiddleware/gtk
Fixed src_channels/dest_channels confusion. (Again caught by Tomas Ogren's
2000-01-05 Owen Taylor <otaylor@redhat.com> * gdk-pixbuf/pixops/pixops.c: Fixed src_channels/dest_channels confusion. (Again caught by Tomas Ogren's Purify)
This commit is contained in:
parent
00b598d267
commit
6aba663522
@ -1,3 +1,8 @@
|
||||
2000-01-05 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk-pixbuf/pixops/pixops.c: Fixed src_channels/dest_channels
|
||||
confusion. (Again caught by Tomas Ogren's Purify)
|
||||
|
||||
2000-01-07 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gdk-pixbuf/gdk-pixbuf-xform.c (gdk_pixbuf_rotate): comment out
|
||||
|
@ -703,7 +703,7 @@ scale_line (int *weights, int n_x, int n_y,
|
||||
unsigned int r = 0, g = 0, b = 0, a = 0;
|
||||
for (i=0; i<n_y; i++)
|
||||
{
|
||||
art_u8 *q = src[i] + x_scaled * dest_channels;
|
||||
art_u8 *q = src[i] + x_scaled * src_channels;
|
||||
int *line_weights = pixel_weights + n_x * i;
|
||||
|
||||
for (j=0; j<n_x; j++)
|
||||
@ -740,7 +740,7 @@ scale_line (int *weights, int n_x, int n_y,
|
||||
unsigned int r = 0, g = 0, b = 0;
|
||||
for (i=0; i<n_y; i++)
|
||||
{
|
||||
art_u8 *q = src[i] + x_scaled * dest_channels;
|
||||
art_u8 *q = src[i] + x_scaled * src_channels;
|
||||
int *line_weights = pixel_weights + n_x * i;
|
||||
|
||||
for (j=0; j<n_x; j++)
|
||||
|
Loading…
Reference in New Issue
Block a user