[longomatch] Don't duplicate the 1x speed in the control bar
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Don't duplicate the 1x speed in the control bar
- Date: Sat, 12 Oct 2013 13:36:16 +0000 (UTC)
commit 5df803a8c2eaf1e97fdcf13a1e945e0e662efc7c
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Oct 9 20:19:44 2013 +0200
Don't duplicate the 1x speed in the control bar
LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs | 14 +++++---------
1 files changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs b/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
index 7f61407..2b06da2 100644
--- a/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
+++ b/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
@@ -399,8 +399,8 @@ namespace LongoMatch.Gui
VScale scale= vscale1;
double val = scale.Value;
- if(val >SCALE_FPS) {
- val = val - SCALE_FPS ;
+ if(val > SCALE_FPS) {
+ val = val + 1 - SCALE_FPS ;
}
else if(val <= SCALE_FPS) {
val = val / SCALE_FPS;
@@ -613,14 +613,10 @@ namespace LongoMatch.Gui
protected virtual void OnVscale1FormatValue(object o, Gtk.FormatValueArgs args)
{
double val = args.Value;
- if(val > SCALE_FPS) {
- val = val - SCALE_FPS ;
+ if(val >= SCALE_FPS) {
+ val = val + 1 - SCALE_FPS ;
args.RetVal = val +"X";
- }
- else if(val == SCALE_FPS) {
- args.RetVal = "1X";
- }
- else if(val < SCALE_FPS) {
+ } else if(val < SCALE_FPS) {
args.RetVal = "-"+val+"/"+SCALE_FPS+"X";
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]