… | |
… | |
674 | { |
674 | { |
675 | assert (file); |
675 | assert (file); |
676 | |
676 | |
677 | if (*file) |
677 | if (*file) |
678 | { |
678 | { |
679 | # ifdef HAVE_AFTERIMAGE |
|
|
680 | if (!target->asimman) |
|
|
681 | target->asimman = create_generic_imageman (target->rs[Rs_path]); |
|
|
682 | |
|
|
683 | if (const char *p = strchr (file, ';')) |
679 | if (const char *p = strchr (file, ';')) |
684 | { |
680 | { |
685 | size_t len = p - file; |
681 | size_t len = p - file; |
686 | char *f = rxvt_temp_buf<char> (len + 1); |
682 | char *f = rxvt_temp_buf<char> (len + 1); |
687 | memcpy (f, file, len); |
683 | memcpy (f, file, len); |
688 | f[len] = '\0'; |
684 | f[len] = '\0'; |
689 | original_asim = get_asimage (target->asimman, f, 0xFFFFFFFF, 100); |
685 | file = f; |
690 | } |
686 | } |
691 | else |
687 | |
|
|
688 | # ifdef HAVE_AFTERIMAGE |
|
|
689 | if (!target->asimman) |
|
|
690 | target->asimman = create_generic_imageman (target->rs[Rs_path]); |
692 | original_asim = get_asimage (target->asimman, file, 0xFFFFFFFF, 100); |
691 | original_asim = get_asimage (target->asimman, file, 0xFFFFFFFF, 100); |
693 | |
|
|
694 | return original_asim; |
692 | return original_asim; |
695 | # endif |
693 | # endif |
696 | } |
694 | } |
697 | |
695 | |
698 | return false; |
696 | return false; |