Lines Matching refs:gradstates

2362 static int gradstates;        // current number of gradient states  variable
2424 } else if (state == gradstates - 1) { in GetGradientColor()
2435 int N = gradstates - 2; in GetGradientColor()
2479 if (state > 0 && state < gradstates) { in OnPaint()
2509 if (state > 0 && state < gradstates) { in OnPaint()
4039 gradstates = algoinfo[coloralgo]->maxstates; in CreateColorPrefs()
4292 gradstates = ad->maxstates; in OnChoice()
4534 scrollbar->SetScrollbar(gradstates - ad->minstates, 1, in UpdateScrollBar()
4546 gradstates--; in OnScroll()
4547 if (gradstates < algoinfo[coloralgo]->minstates) in OnScroll()
4548 gradstates = algoinfo[coloralgo]->minstates; in OnScroll()
4552 gradstates++; in OnScroll()
4553 if (gradstates > algoinfo[coloralgo]->maxstates) in OnScroll()
4554 gradstates = algoinfo[coloralgo]->maxstates; in OnScroll()
4558 gradstates -= PAGESIZE; in OnScroll()
4559 if (gradstates < algoinfo[coloralgo]->minstates) in OnScroll()
4560 gradstates = algoinfo[coloralgo]->minstates; in OnScroll()
4564 gradstates += PAGESIZE; in OnScroll()
4565 if (gradstates > algoinfo[coloralgo]->maxstates) in OnScroll()
4566 gradstates = algoinfo[coloralgo]->maxstates; in OnScroll()
4570 gradstates = algoinfo[coloralgo]->minstates + event.GetPosition(); in OnScroll()
4571 if (gradstates < algoinfo[coloralgo]->minstates) in OnScroll()
4572 gradstates = algoinfo[coloralgo]->minstates; in OnScroll()
4573 if (gradstates > algoinfo[coloralgo]->maxstates) in OnScroll()
4574 gradstates = algoinfo[coloralgo]->maxstates; in OnScroll()