/*
* CINELERRA
* Copyright (C) 2008-2015 Adam Williams <broadcast at earthling dot net>
- *
+ *
* 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"
#include "bcpopupmenu.h"
#include "bcresources.h"
#include "bcsignals.h"
-#include "colors.h"
+#include "bccolors.h"
#include "fonts.h"
#include "keys.h"
#include <string.h>
// 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);
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;
}
{
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);
int h, w;
h = get_h();
w = get_w();
- h--;
+ h--;
w--;
lx = 1; ly = 1;