- got rid of silly #define ..._BIT, #define ... (1<<..._BIT) stuff

- switched almost all uiDefBut(..., TOG|BIT|..) to use UiDefButBit and the
   name of the actual bit define instead of just a magic constant, this makes
   searching the code much nicer. most of the credit here goes to LetterRip
   who did almost all of the conversions, I mostly just checked them over.
This commit is contained in:
2005-08-03 18:48:22 +00:00
parent 2cc6d565cb
commit b03a20d272
40 changed files with 465 additions and 561 deletions

View File

@@ -4612,14 +4612,6 @@ static uiBut *uiDefButBit(uiBlock *block, int type, int bit, int retval, char *s
if (bitIdx==-1) {
return NULL;
} else {
if (type&BIT) {
int curIdx = type&31;
if (curIdx!=bitIdx) {
printf("ERROR: button index mismatch! (Button: %s, Correct Index: %d, Given Index: %d)\n", str, bitIdx, curIdx);
}
}
return uiDefBut(block, type|BIT|bitIdx, retval, str, x1, y1, x2, y2, poin, min, max, a1, a2, tip);
}
}