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:
		@ -1,3 +1,11 @@
 | 
			
		||||
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)
 | 
			
		||||
 | 
			
		||||
2003-06-03  Michael Natterer  <mitch@gimp.org>
 | 
			
		||||
 | 
			
		||||
	* gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
 | 
			
		||||
 | 
			
		||||
@ -1,3 +1,11 @@
 | 
			
		||||
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)
 | 
			
		||||
 | 
			
		||||
2003-06-03  Michael Natterer  <mitch@gimp.org>
 | 
			
		||||
 | 
			
		||||
	* gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
 | 
			
		||||
 | 
			
		||||
@ -1,3 +1,11 @@
 | 
			
		||||
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)
 | 
			
		||||
 | 
			
		||||
2003-06-03  Michael Natterer  <mitch@gimp.org>
 | 
			
		||||
 | 
			
		||||
	* gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
 | 
			
		||||
 | 
			
		||||
@ -1,3 +1,11 @@
 | 
			
		||||
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)
 | 
			
		||||
 | 
			
		||||
2003-06-03  Michael Natterer  <mitch@gimp.org>
 | 
			
		||||
 | 
			
		||||
	* gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
 | 
			
		||||
 | 
			
		||||
@ -1,3 +1,11 @@
 | 
			
		||||
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)
 | 
			
		||||
 | 
			
		||||
2003-06-03  Michael Natterer  <mitch@gimp.org>
 | 
			
		||||
 | 
			
		||||
	* gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
 | 
			
		||||
 | 
			
		||||
@ -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