Merge pull request #127 from Eugene8388608/master
Fixed color in DisplayRadialPoles
This commit is contained in:
commit
79c2a54e8b
|
@ -52,7 +52,7 @@ static void DPRUpdate(void * id, struct NoteFinder*nf)
|
||||||
float p4x = extentx - orthox;
|
float p4x = extentx - orthox;
|
||||||
float p4y = extenty - orthoy;
|
float p4y = extenty - orthoy;
|
||||||
|
|
||||||
CNFGColor( CCtoHEX( pole / (float)freqbins, 1.0, 1.0 ) );
|
CNFGColor( CCtoHEX( (float)pole / (float)freqbins, 1.0, 1.0 ) );
|
||||||
RDPoint pts[6] = {
|
RDPoint pts[6] = {
|
||||||
{ p1x, p1y },
|
{ p1x, p1y },
|
||||||
{ p2x, p2y },
|
{ p2x, p2y },
|
||||||
|
@ -102,7 +102,7 @@ static void DPRUpdate(void * id, struct NoteFinder*nf)
|
||||||
float p4x = cx + cos( angleN ) * (d->radialscale * binvalN + d->centeroffset);
|
float p4x = cx + cos( angleN ) * (d->radialscale * binvalN + d->centeroffset);
|
||||||
float p4y = cy + sin( angleN ) * (d->radialscale * binvalN + d->centeroffset);
|
float p4y = cy + sin( angleN ) * (d->radialscale * binvalN + d->centeroffset);
|
||||||
|
|
||||||
CNFGColor( CCtoHEX( pole / (float)freqbins, 1.0, 1.0 ) );
|
CNFGColor( CCtoHEX( (float)pole / (float)freqbins, 1.0, 1.0 ) );
|
||||||
RDPoint pts[6] = {
|
RDPoint pts[6] = {
|
||||||
{ p1x, p1y },
|
{ p1x, p1y },
|
||||||
{ p2x, p2y },
|
{ p2x, p2y },
|
||||||
|
|
Loading…
Reference in a new issue