summaryrefslogtreecommitdiff
path: root/baserender.c
diff options
context:
space:
mode:
authorMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2013-11-23 16:31:04 +0100
committerMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2013-11-23 16:31:04 +0100
commit583bc1a9041687ad467e822a8c8f321e5446afcf (patch)
treee80bfc3505401df08ce7c676478a4ec22640d81b /baserender.c
parent21b80796e3f532f0bb9ef7573521f2f3913618bd (diff)
downloadskin-flatplus-583bc1a9041687ad467e822a8c8f321e5446afcf.tar.gz
skin-flatplus-583bc1a9041687ad467e822a8c8f321e5446afcf.tar.bz2
release version 0.1.0
Diffstat (limited to 'baserender.c')
-rw-r--r--baserender.c7
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;