X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbcpopupmenu.C;h=7ef71aec6d419ff487ace3979b0e4d7857e2fd84;hb=55b362978e0118efc34c0a654b19c99484c0f346;hp=2fb69d1cb2ecd8010a8b634a07691e8f6d0409d5;hpb=83bfb86d01b353bab485d0ccc336e0572bcb63c6;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/guicast/bcpopupmenu.C b/cinelerra-5.1/guicast/bcpopupmenu.C index 2fb69d1c..7ef71aec 100644 --- a/cinelerra-5.1/guicast/bcpopupmenu.C +++ b/cinelerra-5.1/guicast/bcpopupmenu.C @@ -106,12 +106,12 @@ char* BC_PopupMenu::get_text() return text; } -void BC_PopupMenu::set_text(const char *text) +void BC_PopupMenu::set_text(const char *text, int color) { if(use_title) { strcpy(this->text, text); - draw_title(1); + draw_title(1, color); } } @@ -230,7 +230,7 @@ BC_MenuItem* BC_PopupMenu::get_item(int i) return menu_popup->menu_items.values[i]; } -int BC_PopupMenu::draw_title(int flush) +int BC_PopupMenu::draw_title(int flush, int color) { if(!use_title) return 0; BC_Resources *resources = get_resources(); @@ -240,7 +240,8 @@ int BC_PopupMenu::draw_title(int flush) draw_3segmenth(0, 0, w, images[status]); // Overlay text - set_color(get_resources()->popup_title_text); + if( color < 0 ) color = get_resources()->popup_title_text; + set_color(color); int offset = 0; if(status == BUTTON_DN) offset = 1;