vlc/vlc-2.0 | branch: master | Felix Paul Kühne <[email protected]> | Thu 
Mar 21 16:59:36 2013 +0100| [a9e8fbf9037d4d706904f8839510a34b95317dab] | 
committer: Felix Paul Kühne

macosx: resize the retina bitmaps for the progressions knobs so AppKit doesn't 
do stupid things

This prevents the knob to be blurred in the bright interface style because the 
retina bitmap wasn't twice as large as the regular one
(cherry picked from commit 748e7339cd025dbf0d297a16cb9ea2a029e7db61)

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

 extras/package/macosx/Resources/mainwindow/[email protected]  |  Bin 
3028 -> 3053 bytes
 .../macosx/Resources/mainwindow_dark/[email protected]   |  Bin 
1035 -> 2073 bytes
 modules/gui/macosx/misc.m                                           |    3 +--
 3 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/extras/package/macosx/Resources/mainwindow/[email protected] 
b/extras/package/macosx/Resources/mainwindow/[email protected]
index a633e4b..153d9c3 100644
Binary files 
a/extras/package/macosx/Resources/mainwindow/[email protected] and 
b/extras/package/macosx/Resources/mainwindow/[email protected] differ
diff --git 
a/extras/package/macosx/Resources/mainwindow_dark/[email protected] 
b/extras/package/macosx/Resources/mainwindow_dark/[email protected]
index 7df78e8..543bc89 100644
Binary files 
a/extras/package/macosx/Resources/mainwindow_dark/[email protected] 
and 
b/extras/package/macosx/Resources/mainwindow_dark/[email protected] 
differ
diff --git a/modules/gui/macosx/misc.m b/modules/gui/macosx/misc.m
index f044ac4..fc0b3bf 100644
--- a/modules/gui/macosx/misc.m
+++ b/modules/gui/macosx/misc.m
@@ -546,8 +546,7 @@ void _drawFrameInRect(NSRect frameRect)
     [[NSGraphicsContext currentContext] restoreGraphicsState];
 
     NSRect knobRect = [[self cell] knobRectFlipped:NO];
-    if (b_dark)
-        knobRect.origin.y+=2;
+    knobRect.origin.y+=1;
     [self drawKnobInRect: knobRect];
 }
 

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to