From 4e86546f9bd946da0440e1e788b7260e37520ba4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=BCnther?= Date: Fri, 21 Aug 2009 23:57:59 +0200 Subject: 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. --- HISTORY | 3 +++ render.c | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/HISTORY b/HISTORY index 913ff53..739fc37 100644 --- a/HISTORY +++ b/HISTORY @@ -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 diff --git a/render.c b/render.c index 09e79fd..bfb7107 100644 --- a/render.c +++ b/render.c @@ -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; -- cgit v1.2.3