Remove bad optimization for src_rowstride == dest_stride. (Didn't consider
Tue Jun 3 15:05:47 2003 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkdrawable-x11.c (convert_to_format): Remove bad optimization for src_rowstride == dest_stride. (Didn't consider the case where we were copying only partial widths of a wider source buffer) (#113034, reported by Hans Petter Jansson)
This commit is contained in:
@ -1141,13 +1141,6 @@ convert_to_format (guchar *src_buf,
|
||||
{
|
||||
gint i;
|
||||
|
||||
if (dest_format == FORMAT_EXACT_MASK &&
|
||||
src_rowstride == dest_rowstride)
|
||||
{
|
||||
memcpy (dest_buf, src_buf, height * src_rowstride);
|
||||
return;
|
||||
}
|
||||
|
||||
for (i=0; i < height; i++)
|
||||
{
|
||||
switch (dest_format)
|
||||
|
||||
Reference in New Issue
Block a user