- if(node->dir==SPLIT_HORIZONTAL){
- hprimn=primn;
- vprimn=primn_none2any(vprimn);
- }else{
- vprimn=primn;
- hprimn=primn_none2any(vprimn);
- }
-
- nnode=split_current_todir(split, hprimn, vprimn, filter);
+ nnode=split_current_todir(split,
+ primn_none2any(primn_invert(hprimn)),
+ primn_none2any(primn_invert(vprimn)),
+ filter);