[vlc-commits] macosx: fix fullscreen volume slider knob alignment

Felix Paul Kühne git at videolan.org
Mon Mar 18 23:27:53 CET 2013


vlc/vlc-2.0 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Mar 18 22:42:02 2013 +0100| [f71f4a1a4706aa5b8327563b46e71b31d77bebed] | committer: Felix Paul Kühne

macosx: fix fullscreen volume slider knob alignment
(cherry picked from commit bd994203590f11a8cad6c992171036553c450593)

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

 modules/gui/macosx/fspanel.m |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/fspanel.m b/modules/gui/macosx/fspanel.m
index 9a59c58..2fad860 100644
--- a/modules/gui/macosx/fspanel.m
+++ b/modules/gui/macosx/fspanel.m
@@ -450,7 +450,7 @@
     /* volume slider */
     s_rc = [self frame];
     s_rc.origin.x = 26;
-    s_rc.origin.y = 20;
+    s_rc.origin.y = 21;
     s_rc.size.width = 95;
     s_rc.size.height = 10;
     o_fs_volumeSlider = [[VLCFSVolumeSlider alloc] initWithFrame: s_rc];
@@ -682,7 +682,7 @@
     [[NSGraphicsContext currentContext] restoreGraphicsState];
 
     NSRect knobRect = [[self cell] knobRectFlipped:NO];
-    knobRect.origin.y+=6;
+    knobRect.origin.y+=7.5;
     [[[NSColor blackColor] colorWithAlphaComponent:0.6] set];
     [self drawKnobInRect: knobRect];
 }



More information about the vlc-commits mailing list