diff options
author | Thomas Günther <tom@toms-cafe.de> | 2009-08-21 23:57:59 +0200 |
---|---|---|
committer | Thomas Günther <tom@toms-cafe.de> | 2009-08-21 23:57:59 +0200 |
commit | 4e86546f9bd946da0440e1e788b7260e37520ba4 (patch) | |
tree | 46d5dc40ab3e4170f3e0282493e9fdeef9f821da | |
parent | 0dbd7530d40cc2b89e6835824dc1d3c7c6cc0468 (diff) | |
download | vdr-plugin-text2skin-4e86546f9bd946da0440e1e788b7260e37520ba4.tar.gz vdr-plugin-text2skin-4e86546f9bd946da0440e1e788b7260e37520ba4.tar.bz2 |
Fixed width and height of the selected parts of the replay progress bar (closes #158)
The selected parts of the replay progress bar don't reach the marks. Width
and height of the selected parts has to be increased by 1 pixel to be fully
compatible with the replay progress bar of the standard skins.
-rw-r--r-- | HISTORY | 3 | ||||
-rw-r--r-- | render.c | 6 |
2 files changed, 6 insertions, 3 deletions
@@ -99,6 +99,9 @@ ____-__-__: Version 1.3 - Fixed resetting of replay information (closes #156) - Added ReplayMode "audiocd" (thanks to Björn Sturzrehm - closes #138) - Fixed: Text scroller is not UTF-8 aware (closes #146) +- Fixed width and height of the selected parts of the replay progress bar, + so that its fully compatible with the replay progress bar of the standard + skins (closes #158) 2009-06-01: Version 1.2 @@ -604,7 +604,7 @@ void cText2SkinRender::DrawProgressbar(const txPoint &Pos, const txSize &Size, i const cMark *m2 = Marks->Next(m); DrawRectangle(txPoint(pt.x, Pos.y + Size.h / 3), txSize(((m2 ? m2->position : Total) - m->position) - * Size.w / Total, Size.h - Size.h * 2 / 3), Selected); + * Size.w / Total + 1, Size.h - Size.h * 2 / 3 + 1), Selected); } DrawMark(pt, Size, start, m->position == Current, false, Mark, Cur); start = !start; @@ -620,9 +620,9 @@ void cText2SkinRender::DrawProgressbar(const txPoint &Pos, const txSize &Size, i if (Selected && start) { const cMark *m2 = Marks->Next(m); DrawRectangle(txPoint(Pos.x + Size.w / 3, pt.y), - txSize(Size.w - Size.w * 2 / 3, + txSize(Size.w - Size.w * 2 / 3 + 1, ((m2 ? m2->position : Total) - m->position) - * Size.h / Total), Selected); + * Size.h / Total + 1), Selected); } DrawMark(pt, Size, start, m->position == Current, true, Mark, Cur); start = !start; |