[vlc-devel] commit: macosx: Revert to the old texture window look. (Pierre d'Herbemont )
git version control
git at videolan.org
Wed Aug 27 20:10:14 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Wed Aug 27 20:13:00 2008 +0200| [e701a9334fc123f0055d728e0cc4ee6c9d48bd6c] | committer: Pierre d'Herbemont
macosx: Revert to the old texture window look.
Too much workaround to use it.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e701a9334fc123f0055d728e0cc4ee6c9d48bd6c
---
modules/gui/macosx/embeddedwindow.m | 26 --------------------------
1 files changed, 0 insertions(+), 26 deletions(-)
diff --git a/modules/gui/macosx/embeddedwindow.m b/modules/gui/macosx/embeddedwindow.m
index 318f684..1ecea7f 100644
--- a/modules/gui/macosx/embeddedwindow.m
+++ b/modules/gui/macosx/embeddedwindow.m
@@ -41,32 +41,6 @@
@implementation VLCEmbeddedWindow
-- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned int)windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)deferCreation
-{
- if(MACOS_VERSION < 10.5f)
- {
- self = [super initWithContentRect:contentRect styleMask:windowStyle backing:bufferingType defer:deferCreation];
- } else {
- SEL theSelector;
- NSMethodSignature *aSignature;
- NSInvocation *anInvocation;
- float f_value = 32.0f;
- NSRectEdge ouredge = NSMinYEdge;
-
- windowStyle ^= NSTexturedBackgroundWindowMask;
- self = [super initWithContentRect:contentRect styleMask:windowStyle backing:bufferingType defer:deferCreation];
-
- theSelector = @selector(setContentBorderThickness:forEdge:);
- aSignature = [VLCEmbeddedWindow instanceMethodSignatureForSelector:theSelector];
- anInvocation = [NSInvocation invocationWithMethodSignature:aSignature];
- [anInvocation setSelector:theSelector];
- [anInvocation setTarget:self];
- [anInvocation setArgument:&f_value atIndex:2]; /* FIXME it's actually CGFLoat */
- [anInvocation setArgument:&ouredge atIndex:3];
- }
- return self;
-}
-
- (void)awakeFromNib
{
[self setDelegate: self];
More information about the vlc-devel
mailing list