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

David Fuhrmann david.fuhrmann at googlemail.com
Thu Feb 9 00:40:38 CET 2012


Tested with big and small controls: now the time for a video >= 10h is displayed completely
---
 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];
 }
-- 
1.7.5.4




More information about the vlc-devel mailing list