From addba2559a6e4988652f8e7580947a2884b617e0 Mon Sep 17 00:00:00 2001
From: David Fuhrmann <david.fuhrmann@googlemail.com>
Date: Thu, 9 Feb 2012 00:40:38 +0100
Subject: [PATCH] macosx: let fullscreen controls show the complete time
 information
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Tested with big and small controls: now the time for a video >= 10h is displayed completely

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
(cherry picked from commit b115a253ead9887283b0f043a2759f154702dadd)
---
 modules/gui/macosx/fspanel.m | 6 +++---
 modules/gui/macosx/misc.m    | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/gui/macosx/fspanel.m b/modules/gui/macosx/fspanel.m
index ba838871fb..ce8569596f 100644
--- a/modules/gui/macosx/fspanel.m
+++ b/modules/gui/macosx/fspanel.m
@@ -505,9 +505,9 @@
     s_rc.size.width = 352;
     s_rc.size.height = 14;
     addTextfield( NSTextField, o_streamTitle_txt, NSCenterTextAlignment, systemFontOfSize, whiteColor );
-    s_rc.origin.x = 481;
+    s_rc.origin.x = 471;
     s_rc.origin.y = 64;
-    s_rc.size.width = 55;
+    s_rc.size.width = 65;
     addTextfield( VLCTimeField, o_streamPosition_txt, NSRightTextAlignment, systemFontOfSize, whiteColor );
 
     return view;
@@ -692,7 +692,7 @@
         restyleButton( o_fullscreen, @"fs_exit_fullscreen", @"fs_exit_fullscreen_hightlight", 507, 13 );
         restyleTextfieldOrSlider( o_streamTitle_txt, 98, 64, 352, 14 );
         [o_streamTitle_txt setFont:[NSFont systemFontOfSize:[NSFont smallSystemFontSize]]];
-        restyleTextfieldOrSlider( o_streamPosition_txt, 481, 64, 55, 14);
+        restyleTextfieldOrSlider( o_streamPosition_txt, 471, 64, 65, 14);
         [o_streamPosition_txt setFont:[NSFont systemFontOfSize:[NSFont smallSystemFontSize]]];
         restyleTextfieldOrSlider( o_fs_timeSlider, 15, 55, 518, 9 );
         restyleTextfieldOrSlider( o_fs_volumeSlider, 26, 20, 95, 10);
diff --git a/modules/gui/macosx/misc.m b/modules/gui/macosx/misc.m
index cc58b1c0b2..5bca42c45a 100644
--- a/modules/gui/macosx/misc.m
+++ b/modules/gui/macosx/misc.m
@@ -743,7 +743,7 @@ void _drawFrameInRect(NSRect frameRect)
     NSUInteger i_stringLength = [string length];
 
     [o_attributed_string addAttribute: NSShadowAttributeName value: o_string_shadow range: NSMakeRange(0, i_stringLength)];
-    [o_attributed_string setAlignment: NSCenterTextAlignment range: NSMakeRange(0, i_stringLength)];
+    [o_attributed_string setAlignment: NSRightTextAlignment range: NSMakeRange(0, i_stringLength)];
     [self setAttributedStringValue: o_attributed_string];
     [o_attributed_string release];
 }
-- 
2.25.4