summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2014-10-13 21:51:38 +0200
committerMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2014-10-13 21:51:38 +0200
commitbcc0e3e85b42c5a94898df04d111d7772e522cb2 (patch)
tree28b217fff1771734ceee2b64f365d13a6a3cb788
parentc9150927a9e4aa00c64419503c8d3fc2d363f68b (diff)
downloadskin-flatplus-bcc0e3e85b42c5a94898df04d111d7772e522cb2.tar.gz
skin-flatplus-bcc0e3e85b42c5a94898df04d111d7772e522cb2.tar.bz2
debug output for #1938
-rw-r--r--baserender.c9
-rw-r--r--displaymenu.c5
-rw-r--r--textscroller.c2
3 files changed, 15 insertions, 1 deletions
diff --git a/baserender.c b/baserender.c
index 3d71d59f..de05ee41 100644
--- a/baserender.c
+++ b/baserender.c
@@ -98,7 +98,7 @@ 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 SUCCESS left: %d top: %d width: %d height: %d", left, top, width, height);
+ dsyslog("skinflatplus: create osd SUCCESS left: %d top: %d width: %d height: %d", left, top, width, height);
return;
}
}
@@ -121,8 +121,11 @@ void cFlatBaseRender::TopBarCreate(void) {
topBarHeight = topBarFontSmlHeight * 2;
topBarPixmap = osd->CreatePixmap(1, cRect(Config.decorBorderTopBarSize, Config.decorBorderTopBarSize, osdWidth - Config.decorBorderTopBarSize*2, topBarHeight));
+ dsyslog("skinflatplus: topBarPixmap left: %d top: %d width: %d height: %d", Config.decorBorderTopBarSize, Config.decorBorderTopBarSize, osdWidth - Config.decorBorderTopBarSize*2, topBarHeight);
topBarIconBGPixmap = osd->CreatePixmap(2, cRect(Config.decorBorderTopBarSize, Config.decorBorderTopBarSize, osdWidth - Config.decorBorderTopBarSize*2, topBarHeight));
+ dsyslog("skinflatplus: topBarIconBGPixmap left: %d top: %d width: %d height: %d", Config.decorBorderTopBarSize, Config.decorBorderTopBarSize, osdWidth - Config.decorBorderTopBarSize*2, topBarHeight);
topBarIconPixmap = osd->CreatePixmap(3, cRect(Config.decorBorderTopBarSize, Config.decorBorderTopBarSize, osdWidth - Config.decorBorderTopBarSize*2, topBarHeight));
+ dsyslog("skinflatplus: topBarIconPixmap left: %d top: %d width: %d height: %d", Config.decorBorderTopBarSize, Config.decorBorderTopBarSize, osdWidth - Config.decorBorderTopBarSize*2, topBarHeight);
topBarPixmap->Fill(clrTransparent);
topBarIconBGPixmap->Fill(clrTransparent);
topBarIconPixmap->Fill(clrTransparent);
@@ -442,6 +445,7 @@ void cFlatBaseRender::ButtonsCreate(void) {
buttonsPixmap = osd->CreatePixmap(1, cRect(Config.decorBorderButtonSize,
buttonsTop, buttonsWidth - Config.decorBorderButtonSize*2, buttonsHeight));
buttonsPixmap->Fill(clrTransparent);
+ dsyslog("skinflatplus: buttonsPixmap left: %d top: %d width: %d height: %d", Config.decorBorderButtonSize, buttonsTop, buttonsWidth - Config.decorBorderButtonSize*2, buttonsHeight);
}
void cFlatBaseRender::ButtonsSet(const char *Red, const char *Green, const char *Yellow, const char *Blue) {
@@ -506,6 +510,9 @@ void cFlatBaseRender::MessageCreate(void) {
messageIconPixmap = osd->CreatePixmap(5, cRect(Config.decorBorderMessageSize, top, osdWidth - Config.decorBorderMessageSize*2, messageHeight));
messageIconPixmap->Fill(clrTransparent);
+ dsyslog("skinflatplus: messagePixmap left: %d top: %d width: %d height: %d", Config.decorBorderMessageSize, top, osdWidth - Config.decorBorderMessageSize*2, messageHeight);
+ dsyslog("skinflatplus: messageIconPixmap left: %d top: %d width: %d height: %d", Config.decorBorderMessageSize, top, osdWidth - Config.decorBorderMessageSize*2, messageHeight);
+
messageScroller.SetOsd(osd);
messageScroller.SetScrollStep( Config.ScrollerStep );
messageScroller.SetScrollDelay( Config.ScrollerDelay );
diff --git a/displaymenu.c b/displaymenu.c
index 9f649dbe..9c480d05 100644
--- a/displaymenu.c
+++ b/displaymenu.c
@@ -50,17 +50,22 @@ cFlatDisplayMenu::cFlatDisplayMenu(void) {
menuWidth = osdWidth;
menuTop = topBarHeight + marginItem + Config.decorBorderTopBarSize*2 + Config.decorBorderMenuItemSize;
menuPixmap = osd->CreatePixmap(1, cRect(0, menuTop, menuWidth, scrollBarHeight ));
+ dsyslog("skinflatplus: menuPixmap left: %d top: %d width: %d height: %d", 0, menuTop, menuWidth, scrollBarHeight );
menuIconsBGPixmap = osd->CreatePixmap(2, cRect(0, menuTop, menuWidth, scrollBarHeight ));
+ dsyslog("skinflatplus: menuIconsBGPixmap left: %d top: %d width: %d height: %d", 0, menuTop, menuWidth, scrollBarHeight );
menuIconsPixmap = osd->CreatePixmap(3, cRect(0, menuTop, menuWidth, scrollBarHeight ));
+ dsyslog("skinflatplus: menuIconsPixmap left: %d top: %d width: %d height: %d", 0, menuTop, menuWidth, scrollBarHeight );
chLeft = Config.decorBorderMenuContentHeadSize;
chTop = topBarHeight + marginItem + Config.decorBorderTopBarSize*2 + Config.decorBorderMenuContentHeadSize;
chWidth = menuWidth - Config.decorBorderMenuContentHeadSize*2;
chHeight = fontHeight + fontSmlHeight*2 + marginItem*2;
contentHeadPixmap = osd->CreatePixmap(1, cRect(chLeft, chTop, chWidth, chHeight));
+ dsyslog("skinflatplus: contentHeadPixmap left: %d top: %d width: %d height: %d", chLeft, chTop, chWidth, chHeight );
scrollbarPixmap = osd->CreatePixmap(2, cRect(0, scrollBarTop, menuWidth, scrollBarHeight + buttonsHeight + Config.decorBorderButtonSize*2));
+ dsyslog("skinflatplus: scrollbarPixmap left: %d top: %d width: %d height: %d", 0, scrollBarTop, menuWidth, scrollBarHeight + buttonsHeight + Config.decorBorderButtonSize*2 );
menuPixmap->Fill(clrTransparent);
menuIconsPixmap->Fill(clrTransparent);
diff --git a/textscroller.c b/textscroller.c
index dc7b0406..37cf31f0 100644
--- a/textscroller.c
+++ b/textscroller.c
@@ -16,6 +16,8 @@ void cTextScroll::SetText(const char *text, cRect position, tColor colorFg, tCol
Osd->DestroyPixmap(Pixmap);
Pixmap = Osd->CreatePixmap(Layer, Position, drawPort);
+ dsyslog("skinflatplus: TextScrollerPixmap left: %d top: %d width: %d height: %d", Position.Left(), Position.Top(), Position.Width(), Position.Height());
+ dsyslog("skinflatplus: TextScrollerPixmap drawPort left: %d top: %d width: %d height: %d", drawPort.Left(), drawPort.Top(), drawPort.Width(), drawPort.Height());
Pixmap->Fill( colorBg );
Draw();
}