X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbctheme.C;fp=cinelerra-5.1%2Fguicast%2Fbctheme.C;h=1ec64c7f98eadd675b338715a01aa2629275b8eb;hp=c206f258af27131ab8e8dd0a3e1d12a3812444ef;hb=5ec378f09aeeb646705fdb8035b39a186374fba0;hpb=6ff8b339d215bb1c2cef589fd7959aa2e1834105 diff --git a/cinelerra-5.1/guicast/bctheme.C b/cinelerra-5.1/guicast/bctheme.C index c206f258..1ec64c7f 100644 --- a/cinelerra-5.1/guicast/bctheme.C +++ b/cinelerra-5.1/guicast/bctheme.C @@ -79,6 +79,17 @@ VFrame* BC_Theme::new_image(const char *path) return new_image("", path); } +VFrame* BC_Theme::new_image1(const char *title, const char *path) +{ + VFrame *existing_image = title[0] ? get_image(title, 0) : 0; + if( existing_image ) return existing_image; + + BC_ThemeSet *result = new BC_ThemeSet(1, 0, title); + result->data[0] = new VFramePng(get_image_data(path), 1.); + add_image_set(result); + return result->data[0]; +} + // These create image sets which are stored in the image_sets table. VFrame** BC_Theme::new_image_set(const char *title, int total, va_list *args) {