X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fmacosx%2Fvout.m;h=394a590adb6569005c30e27291c4637722fa2df2;hb=4630078ee9fe10f7c52ccd0cf34d83ed25e20680;hp=84c7dde43e6421669c0b20bb258d50c05a70f03d;hpb=5889307336d67b11b4988253ec304d335c6bbf57;p=vlc diff --git a/modules/gui/macosx/vout.m b/modules/gui/macosx/vout.m index 84c7dde43e..394a590adb 100644 --- a/modules/gui/macosx/vout.m +++ b/modules/gui/macosx/vout.m @@ -1058,7 +1058,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, [self makeFirstResponder: o_view]; [self setCanBecomeKeyWindow: YES]; - if( var_GetBool( p_vout, "macosx-background" ) ) + if( var_CreateGetBool( p_vout, "macosx-background" ) ) { int i_device = var_GetInteger( p_vout->p_libvlc, "video-device" ); @@ -1075,12 +1075,12 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, [self setLevel: CGWindowLevelForKey(kCGDesktopWindowLevelKey)]; [self setMovableByWindowBackground: NO]; } - if( var_GetBool( p_vout, "video-on-top" ) ) + if( var_CreateGetBool( p_vout, "video-on-top" ) ) { [self setLevel: NSStatusWindowLevel]; } - [self setAlphaValue: var_GetFloat( p_vout, "macosx-opaqueness" )]; + [self setAlphaValue: var_CreateGetFloat( p_vout, "macosx-opaqueness" )]; /* Add the view. It's automatically resized to fit the window */ [self setContentView: o_view]; @@ -1099,7 +1099,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, BOOL b_black = NO; i_device = var_GetInteger( p_vout->p_libvlc, "video-device" ); - b_black = var_GetBool( p_vout, "macosx-black" ); + b_black = var_CreateGetBool( p_vout, "macosx-black" ); /* Find out on which screen to open the window */ screen = [NSScreen screenWithDisplayID: (CGDirectDisplayID)i_device];