X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbctheme.C;h=1ec64c7f98eadd675b338715a01aa2629275b8eb;hb=0c48864cab7b37268025485c6a227f36b3420030;hp=c206f258af27131ab8e8dd0a3e1d12a3812444ef;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;p=goodguy%2Fcinelerra.git 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) {