- bouqueteditor: using CComponentsHeader to paint header

* move menu button to header
This commit is contained in:
svenhoefer
2013-05-28 01:32:23 +02:00
parent 09e619aac8
commit 920e454274
2 changed files with 13 additions and 20 deletions

View File

@@ -44,6 +44,7 @@
#include <driver/fontrenderer.h>
#include <driver/screen_max.h>
#include "bouqueteditor_chanselect.h"
#include <gui/components/cc_frm.h>
#include <gui/widget/buttons.h>
#include <gui/widget/icons.h>
@@ -167,8 +168,8 @@ void CBEChannelWidget::paint()
void CBEChannelWidget::paintHead()
{
frameBuffer->paintBoxRel(x,y, width,theight+0, COL_MENUHEAD_PLUS_0, RADIUS_LARGE, CORNER_TOP);
g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->RenderString(x+10,y+theight+0, width, caption.c_str() , COL_MENUHEAD, 0, true);
CComponentsHeader header(x, y, width, theight, caption.c_str(), NULL /*no header icon*/);
header.paint();
}
const struct button_label CBEChannelWidgetButtons[4] =