ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/background.C
(Generate patch)

Comparing rxvt-unicode/src/background.C (file contents):
Revision 1.81 by sf-exg, Wed Oct 13 23:08:11 2010 UTC vs.
Revision 1.82 by sf-exg, Thu Oct 14 16:01:28 2010 UTC

941 } 941 }
942 942
943# ifdef HAVE_AFTERIMAGE 943# ifdef HAVE_AFTERIMAGE
944 if (!target->asimman) 944 if (!target->asimman)
945 target->asimman = create_generic_imageman (target->rs[Rs_path]); 945 target->asimman = create_generic_imageman (target->rs[Rs_path]);
946 original_asim = get_asimage (target->asimman, file, 0xFFFFFFFF, 100); 946 ASImage *image = get_asimage (target->asimman, file, 0xFFFFFFFF, 100);
947 if (image)
948 {
947 if (original_asim) 949 if (original_asim)
950 safe_asimage_destroy (original_asim);
951 original_asim = image;
948 have_image = true; 952 have_image = true;
949 return have_image; 953 return true;
954 }
950# endif 955# endif
951 956
952# ifdef HAVE_PIXBUF 957# ifdef HAVE_PIXBUF
953 pixbuf = gdk_pixbuf_new_from_file (file, NULL); 958 GdkPixbuf *image = gdk_pixbuf_new_from_file (file, NULL);
959 if (image)
960 {
954 if (pixbuf) 961 if (pixbuf)
962 g_object_unref (pixbuf);
963 pixbuf = image;
955 have_image = true; 964 have_image = true;
956 return have_image; 965 return true;
966 }
957# endif 967# endif
958 } 968 }
959 969
960 return false; 970 return false;
961} 971}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines