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

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


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

macosx: fix fullscreen volume slider knob alignment

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

 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 0d73ff2..f2f2433 100644
--- a/modules/gui/macosx/fspanel.m
+++ b/modules/gui/macosx/fspanel.m
@@ -442,7 +442,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];
@@ -723,7 +723,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