Skip to content
Snippets Groups Projects
Commit ee01999e authored by slevy's avatar slevy
Browse files

Add SEL_OFF, SELBYDEST() (like SELECTED but for SEL_DEST SelOp's).

parent 91982e4c
No related branches found
No related tags found
No related merge requests found
......@@ -126,6 +126,7 @@ typedef struct _selfunc {
* (attributes ^ wanton) & (wanton | wantoff) == 0
*/
#define SELECTED(attrs, selp) (0==( ((attrs)^(selp)->wanton) & (selp)->wanted))
#define SELBYDEST(attrs, selp) (0==( ((attrs)^(selp)->wanton) & ~(selp)->wanted))
#define SELSET(attrs, selp) ((attrs) = ((attrs)&(selp)->wanted) ^ (selp)->wanton)
#define SELUNSET(attrs, selp) (((attrs) = ((attrs)&~(selp)->wanton)) | ~(selp)->wanted)
......@@ -309,6 +310,7 @@ struct stuff {
int threshvar; /* datavar index to threshold on */
float thresh[2]; /* data range */
int threshseq;
#define SEL_OFF 34
#define SEL_ALL 33
#define SEL_THRESH 32
#define SEL_PICK 31 /*XXX shouldn't be hard-wired!*/
......@@ -316,6 +318,7 @@ struct stuff {
int useemph;
SelOp emphsel;
float emphfactor; /* increase lum by this factor */
int selcount; /* temp variable, counts numbers of chosen ones */
#define MAXSEL 30
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment