X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbcmenubar.C;h=908567ec592184381a3f141758a7833bc75ac0a1;hb=5e3715ec449272335bab3419bf21ed4cd6d4bcbf;hp=7dff4a38274cfb28a0bfea82f504c744eb7ae07b;hpb=3406c79cd1a832418ad3a8b3de7a823b79ff5675;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/guicast/bcmenubar.C b/cinelerra-5.1/guicast/bcmenubar.C index 7dff4a38..908567ec 100644 --- a/cinelerra-5.1/guicast/bcmenubar.C +++ b/cinelerra-5.1/guicast/bcmenubar.C @@ -2,21 +2,21 @@ /* * CINELERRA * Copyright (C) 2008-2015 Adam Williams - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * + * */ #include "bcmenu.h" @@ -27,7 +27,7 @@ #include "bcpopupmenu.h" #include "bcresources.h" #include "bcsignals.h" -#include "colors.h" +#include "bccolors.h" #include "fonts.h" #include "keys.h" #include @@ -79,7 +79,7 @@ int BC_MenuBar::initialize() // Create the subwindow BC_SubWindow::initialize(); - if(resources->menu_bg) + if(resources->menu_bg) set_background(resources->menu_bg); draw_face(0, 0); show_window(0); @@ -109,14 +109,14 @@ int BC_MenuBar::add_menu(BC_Menu* menu) if(menu_titles.total == 0) x = 2; else - x = menu_titles.values[menu_titles.total - 1]->x + + x = menu_titles.values[menu_titles.total - 1]->x + menu_titles.values[menu_titles.total - 1]->w; w = get_text_width(MEDIUMFONT, menu->text) + 20; // get pointer menu_titles.append(menu); // initialize and draw - menu->initialize(top_level, this, x, 2, w, get_h() - 4); + menu->initialize(top_level, this, x, 2, w, get_h() - 4); return 0; } @@ -262,9 +262,9 @@ int BC_MenuBar::draw_face(int flash, int flush) { if(menu_bar_bg) { - draw_3segmenth(0, - 0, - get_w(), + draw_3segmenth(0, + 0, + get_w(), menu_bar_bg); // 9 segment doesn't draw properly // draw_9segment(0, 0, get_w(), get_h(), menu_bar_bg); @@ -275,7 +275,7 @@ int BC_MenuBar::draw_face(int flash, int flush) int h, w; h = get_h(); w = get_w(); - h--; + h--; w--; lx = 1; ly = 1;