… | |
… | |
674 | } |
674 | } |
675 | |
675 | |
676 | void |
676 | void |
677 | rxvt_term::parse_image (int id, const char *type, const char *arg) |
677 | rxvt_term::parse_image (int id, const char *type, const char *arg) |
678 | { |
678 | { |
679 | rxvt_image *image; |
679 | if (image_vec.size () < id + 1) |
|
|
680 | image_vec.resize (id + 1); |
680 | |
681 | |
681 | for (image = image_vec.begin (); image < image_vec.end (); image++) |
682 | rxvt_image *image = &image_vec[id]; |
682 | if (image->id == id) |
|
|
683 | break; |
|
|
684 | |
|
|
685 | if (image == image_vec.end ()) |
|
|
686 | { |
|
|
687 | image = new_image (); |
|
|
688 | image->id = id; |
|
|
689 | } |
|
|
690 | } |
683 | } |
691 | # endif |
684 | # endif |
692 | |
685 | |
693 | rxvt_image::rxvt_image () |
686 | rxvt_image::rxvt_image () |
694 | { |
687 | { |
695 | id = |
|
|
696 | alpha = |
688 | alpha = |
697 | flags = |
689 | flags = |
698 | h_scale = |
690 | h_scale = |
699 | v_scale = |
691 | v_scale = |
700 | h_align = |
692 | h_align = |