[vlc-commits] macosx: let fullscreen controls show the complete time information

David Fuhrmann git at videolan.org
Thu Feb 9 10:44:16 CET 2012


vlc/vlc-2.0 | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Thu Feb  9 00:40:38 2012 +0100| [addba2559a6e4988652f8e7580947a2884b617e0] | committer: Felix Paul Kühne

macosx: let fullscreen controls show the complete time information

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

Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>
(cherry picked from commit b115a253ead9887283b0f043a2759f154702dadd)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=addba2559a6e4988652f8e7580947a2884b617e0
---

 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 ba83887..ce85695 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 cc58b1c..5bca42c 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];
 }



More information about the vlc-commits mailing list