[vlc-commits] macosx: video effects panel: only allow to activate clone XOR wall

David Fuhrmann git at videolan.org
Tue Dec 25 20:04:35 CET 2012


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Tue Dec 25 20:01:05 2012 +0100| [25316fbffc51417c6020ab9565db3dacf084fb4d] | committer: David Fuhrmann

macosx: video effects panel: only allow to activate clone XOR wall

Clone and wall is not supported yet.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=25316fbffc51417c6020ab9565db3dacf084fb4d
---

 modules/gui/macosx/VideoEffects.m |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/modules/gui/macosx/VideoEffects.m b/modules/gui/macosx/VideoEffects.m
index 9965a6b..48acd9c 100644
--- a/modules/gui/macosx/VideoEffects.m
+++ b/modules/gui/macosx/VideoEffects.m
@@ -1050,6 +1050,11 @@ static VLCVideoEffects *_o_sharedInstance = nil;
 {
     BOOL b_state = [o_clone_ckb state];
 
+    if (b_state && [o_wall_ckb state]) {
+        [o_wall_ckb setState: NSOffState];
+        [self enableWall: o_wall_ckb];
+    }
+
     [self setVideoFilter: "clone" on: b_state];
     [o_clone_number_lbl setEnabled: b_state];
     [o_clone_number_fld setEnabled: b_state];
@@ -1065,6 +1070,11 @@ static VLCVideoEffects *_o_sharedInstance = nil;
 {
     BOOL b_state = [o_wall_ckb state];
 
+    if (b_state && [o_clone_ckb state]) {
+        [o_clone_ckb setState: NSOffState];
+        [self enableClone: o_clone_ckb];
+    }
+
     [self setVideoFilter: "wall" on: b_state];
     [o_wall_numofcols_fld setEnabled: b_state];
     [o_wall_numofcols_stp setEnabled: b_state];



More information about the vlc-commits mailing list