diff options
-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; |