Merge pull request #127 from Eugene8388608/master

Fixed color in DisplayRadialPoles
This commit is contained in:
Sam Ellicott 2021-12-12 09:54:58 -05:00 committed by GitHub
commit 79c2a54e8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,7 +52,7 @@ static void DPRUpdate(void * id, struct NoteFinder*nf)
float p4x = extentx - orthox;
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] = {
{ p1x, p1y },
{ 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 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] = {
{ p1x, p1y },
{ p2x, p2y },