diff options
author | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2013-11-23 16:31:04 +0100 |
---|---|---|
committer | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2013-11-23 16:31:04 +0100 |
commit | 583bc1a9041687ad467e822a8c8f321e5446afcf (patch) | |
tree | e80bfc3505401df08ce7c676478a4ec22640d81b /baserender.c | |
parent | 21b80796e3f532f0bb9ef7573521f2f3913618bd (diff) | |
download | skin-flatplus-583bc1a9041687ad467e822a8c8f321e5446afcf.tar.gz skin-flatplus-583bc1a9041687ad467e822a8c8f321e5446afcf.tar.bz2 |
release version 0.1.0
Diffstat (limited to 'baserender.c')
-rw-r--r-- | baserender.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/baserender.c b/baserender.c index f3f62505..101bd4a2 100644 --- a/baserender.c +++ b/baserender.c @@ -66,7 +66,6 @@ cFlatBaseRender::~cFlatBaseRender(void) { } void cFlatBaseRender::CreateFullOsd(void) { - //printf("left: %d top: %d width: %d height: %d", cOsd::OsdLeft(), cOsd::OsdTop(), cOsd::OsdWidth(), cOsd::OsdHeight()); CreateOsd(cOsd::OsdLeft() + Config.marginOsdHor, cOsd::OsdTop() + Config.marginOsdVer, cOsd::OsdWidth() - Config.marginOsdHor*2, cOsd::OsdHeight() - Config.marginOsdVer*2); } @@ -80,9 +79,11 @@ void cFlatBaseRender::CreateOsd(int left, int top, int width, int height) { if (osd) { tArea Area = { 0, 0, width, height, 32 }; if (osd->SetAreas(&Area, 1) == oeOk) { + dsyslog("skinflatplus: create osd SUCESS left: %d top: %d width: %d height: %d", left, top, width, height); return; } } + dsyslog("skinflatplus: create osd FAILED left: %d top: %d width: %d height: %d", left, top, width, height); return; } @@ -174,8 +175,8 @@ void cFlatBaseRender::TopBarUpdate(void) { if( topBarMenuIconSet && Config.TopBarMenuIconShow ) { int IconLeft = marginItem; - if (imgLoader.LoadIcon(*topBarMenuIcon, 999, topBarHeight)) { - int iconTop = topBarHeight / 2 - imgLoader.Height()/2; + if (imgLoader.LoadIcon(*topBarMenuIcon, 999, topBarHeight - marginItem*2)) { + int iconTop = (topBarHeight / 2 - imgLoader.Height()/2); topBarIconPixmap->DrawImage(cPoint(IconLeft, iconTop), imgLoader.GetImage()); MenuIconWidth = imgLoader.Width()+marginItem*2; TitleWidthLeft -= MenuIconWidth + marginItem*3; |