diff options
author | louis <louis.braun@gmx.de> | 2013-04-17 14:19:39 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-04-17 14:19:39 +0200 |
commit | 180d534d2464606aa7bf0e0d67b22446a76801c8 (patch) | |
tree | 1a25e35308aa9788a67aa86ec99e3cbad5bfc1b1 /displayreplay.c | |
parent | 8d0771bf3205330462553aa096797700f69107d7 (diff) | |
download | skin-nopacity-180d534d2464606aa7bf0e0d67b22446a76801c8.tar.gz skin-nopacity-180d534d2464606aa7bf0e0d67b22446a76801c8.tar.bz2 |
Fixed a bug that slow motion trick speed was not displayed
Diffstat (limited to 'displayreplay.c')
-rw-r--r-- | displayreplay.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/displayreplay.c b/displayreplay.c index b19351b..e59ef12 100644 --- a/displayreplay.c +++ b/displayreplay.c @@ -242,17 +242,19 @@ void cNopacityDisplayReplay::SetMode(bool Play, bool Forward, int Speed) { pixmapFwdSpeed->Fill(clrTransparent); cImageLoader imgLoader; - if (!Play) { - pixmapPause->Fill(clrTransparent); - if (imgLoader.LoadIcon("skinIcons/pause", iconSize)) { - pixmapPause->DrawImage(cPoint(0,0), imgLoader.GetImage()); + if (Speed == -1) { + if (Play) { + pixmapPlay->Fill(clrTransparent); + if (imgLoader.LoadIcon("skinIcons/play", iconSize)) { + pixmapPlay->DrawImage(cPoint(0,0), imgLoader.GetImage()); + } + } else { + pixmapPause->Fill(clrTransparent); + if (imgLoader.LoadIcon("skinIcons/pause", iconSize)) { + pixmapPause->DrawImage(cPoint(0,0), imgLoader.GetImage()); + } } - } else if (Play && (Speed < 0)) { - pixmapPlay->Fill(clrTransparent); - if (imgLoader.LoadIcon("skinIcons/play", iconSize)) { - pixmapPlay->DrawImage(cPoint(0,0), imgLoader.GetImage()); - } - } else if (Play && Forward) { + } else if (Forward) { pixmapFwd->Fill(clrTransparent); if (imgLoader.LoadIcon("skinIcons/fwd", iconSize)) { pixmapFwd->DrawImage(cPoint(0,0), imgLoader.GetImage()); @@ -262,7 +264,7 @@ void cNopacityDisplayReplay::SetMode(bool Play, bool Forward, int Speed) { int sWidth = fontReplayHeader->Width(*speed); pixmapFwdSpeed->DrawText(cPoint((iconSize - sWidth)/2, (iconSize - fontReplayHeader->Height())/2), *speed, Theme.Color(clrReplayHighlightIcon), clrTransparent, fontReplayHeader); } - } else if (Play && !Forward) { + } else { pixmapRew->Fill(clrTransparent); if (imgLoader.LoadIcon("skinIcons/rew", iconSize)) { pixmapRew->DrawImage(cPoint(0,0), imgLoader.GetImage()); @@ -273,7 +275,6 @@ void cNopacityDisplayReplay::SetMode(bool Play, bool Forward, int Speed) { pixmapRewSpeed->DrawText(cPoint((iconSize - sWidth)/2, (iconSize - fontReplayHeader->Height())/2), *speed, Theme.Color(clrReplayHighlightIcon), clrTransparent, fontReplayHeader); } } - } void cNopacityDisplayReplay::SetProgress(int Current, int Total) { |