[vlc-devel] commit: macosx: Don't do fancy stuff on 10.4. (Pierre d'Herbemont )
Georg Seifert
georg.seifert at gmx.de
Mon Aug 25 22:45:29 CEST 2008
did you tested it on PPC? My testApp crashes with your code it
compiled with 10.4 target.
Georg
Am 25.08.2008 um 22:17 schrieb git version control:
> vlc | branch: 0.9-bugfix | Pierre d'Herbemont <pdherbemont at videolan.org
> > | Mon Aug 25 22:16:03 2008 +0200|
> [1a1ee38f77687fc72881cfc5613cb15fe0955250] | committer: Pierre
> d'Herbemont
>
> macosx: Don't do fancy stuff on 10.4.
>
> Should fix the ppc crash.
>
> Cherry-picked from fcf7831c917acc2eff0bb20fb622839e22282699
>
>> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1a1ee38f77687fc72881cfc5613cb15fe0955250
> ---
>
> modules/gui/macosx/embeddedwindow.m | 12 ++++++++++++
> 1 files changed, 12 insertions(+), 0 deletions(-)
>
> diff --git a/modules/gui/macosx/embeddedwindow.m b/modules/gui/
> macosx/embeddedwindow.m
> index 1ecea7f..c249bea 100644
> --- a/modules/gui/macosx/embeddedwindow.m
> +++ b/modules/gui/macosx/embeddedwindow.m
> @@ -41,6 +41,18 @@
>
> @implementation VLCEmbeddedWindow
>
> +- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned
> int)windowStyle backing:(NSBackingStoreType)bufferingType defer:
> (BOOL)deferCreation
> +{
> + if(MACOS_VERSION < 10.5f)
> + return [super initWithContentRect:contentRect
> styleMask:windowStyle backing:bufferingType defer:deferCreation];
> +
> + windowStyle ^= NSTexturedBackgroundWindowMask;
> + self = [super initWithContentRect:contentRect
> styleMask:windowStyle backing:bufferingType defer:deferCreation];
> + [self setContentBorderThickness:32.0 forEdge:NSMinYEdge];
> +
> + return self;
> +}
> +
> - (void)awakeFromNib
> {
> [self setDelegate: self];
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list