summaryrefslogtreecommitdiff
path: root/baserender.c
diff options
context:
space:
mode:
authorMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2014-02-16 14:07:19 +0100
committerMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2014-02-16 14:07:19 +0100
commitf59cce493e621f3e0d7d2a6c3416c755c91e766f (patch)
tree1427728bce33c368bab2317546eff87635ed949c /baserender.c
parentce3f1e6df06b3c25398fd5d958427ecc9edcaa2e (diff)
downloadskin-flatplus-f59cce493e621f3e0d7d2a6c3416c755c91e766f.tar.gz
skin-flatplus-f59cce493e621f3e0d7d2a6c3416c755c91e766f.tar.bz2
fixes in SetItemEvent
Diffstat (limited to 'baserender.c')
-rw-r--r--baserender.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/baserender.c b/baserender.c
index 891c8754..36935904 100644
--- a/baserender.c
+++ b/baserender.c
@@ -84,7 +84,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;
}
}
@@ -508,8 +508,12 @@ int cFlatBaseRender::ContentScrollOffset(void) {
if ( ((-1)*contentPixmap->DrawPort().Point().Y() + contentHeight + h) > contentDrawPortHeight) {
offset = (double)1 - ScrollbarSize();
+ //dsyslog("1 offset %f h %d return %d", offset, h, (int)(ContentScrollTotal() * offset));
} else {
offset = (double)((-1)*contentPixmap->DrawPort().Point().Y()) / (double)((-1)*contentPixmap->DrawPort().Point().Y() + contentHeight);
+ //dsyslog("2 offset %f h %d return %d", offset, h, (int)(ContentScrollTotal() * offset));
+ //dsyslog("contentHeight %d Y %d", contentHeight, contentPixmap->DrawPort().Point().Y());
+ //dsyslog("contentDrawPortHeight %d Y %d", contentDrawPortHeight, contentPixmap->DrawPort().Point().Y());
}
return ContentScrollTotal() * offset;