[vlc-commits] macosx: resize the retina bitmaps for the progressions knobs so AppKit doesn' t do stupid things

Felix Paul Kühne git at videolan.org
Thu Mar 21 17:03:28 CET 2013


vlc/vlc-2.0 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | 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/progression-knob at 2x.png  |  Bin 3028 -> 3053 bytes
 .../macosx/Resources/mainwindow_dark/progression-knob_dark at 2x.png   |  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/progression-knob at 2x.png b/extras/package/macosx/Resources/mainwindow/progression-knob at 2x.png
index a633e4b..153d9c3 100644
Binary files a/extras/package/macosx/Resources/mainwindow/progression-knob at 2x.png and b/extras/package/macosx/Resources/mainwindow/progression-knob at 2x.png differ
diff --git a/extras/package/macosx/Resources/mainwindow_dark/progression-knob_dark at 2x.png b/extras/package/macosx/Resources/mainwindow_dark/progression-knob_dark at 2x.png
index 7df78e8..543bc89 100644
Binary files a/extras/package/macosx/Resources/mainwindow_dark/progression-knob_dark at 2x.png and b/extras/package/macosx/Resources/mainwindow_dark/progression-knob_dark at 2x.png 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];
 }
 



More information about the vlc-commits mailing list