[vlc-devel] commit: macosx: disable the SL-look for the main controller window until its artefacts are fixed ( Felix Paul Kühne )
Pierre d'Herbemont
pdherbemont at free.fr
Sun May 3 19:21:42 CEST 2009
Why don't you apply it to the window defined in embeddedvideo.m? That
would enable it just for the main video window.
Pierre.
On Sun, May 3, 2009 at 8:41 AM, git version control <git at videolan.org> wrote:
> vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun May 3 17:40:45 2009 +0200| [d1155aaeb0acb36a232640aa22a8b33407342179] | committer: Felix Paul Kühne
>
> macosx: disable the SL-look for the main controller window until its artefacts are fixed
>
>> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d1155aaeb0acb36a232640aa22a8b33407342179
> ---
>
> modules/gui/macosx/misc.m | 9 +++++++--
> 1 files changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/modules/gui/macosx/misc.m b/modules/gui/macosx/misc.m
> index ee673f6..4d77a38 100644
> --- a/modules/gui/macosx/misc.m
> +++ b/modules/gui/macosx/misc.m
> @@ -406,22 +406,27 @@ static NSMutableArray *blackoutWindows = NULL;
> - (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)styleMask
> backing:(NSBackingStoreType)backingType defer:(BOOL)flag
> {
> - BOOL b_useTextured = YES;
> + /* FIXME: this should enable the SnowLeopard window style, however, it leads to ugly artifacts
> + * needs some further investigation! -- feepk
> + BOOL b_useTextured = YES;
> +
> if( [[NSWindow class] instancesRespondToSelector:@selector(setContentBorderThickness:forEdge:)] )
> {
> b_useTextured = NO;
> styleMask ^= NSTexturedBackgroundWindowMask;
> - }
> + } */
>
> self = [super initWithContentRect:contentRect styleMask:styleMask //& ~NSTitledWindowMask
> backing:backingType defer:flag];
>
> [[VLCMain sharedInstance] updateTogglePlaylistState];
>
> + /* FIXME: see above...
> if(! b_useTextured )
> {
> [self setContentBorderThickness:28.0 forEdge:NSMinYEdge];
> }
> + */
> return 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