Skip to content

Commit

Permalink
Merge pull request seandepagnier#228 from did-g/fixes
Browse files Browse the repository at this point in the history
Trivial fixes
  • Loading branch information
seandepagnier authored Sep 13, 2018
2 parents bf92fa1 + 25da387 commit b6af9b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/LineBufferOverlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ void LineBufferOverlay::setLineBuffer()

arrow.pushLine( 0, dec, 0, dec - windArrowSize ); // hampe
// Right arrow
arrow.pushLine(0, dec - ceil(m_lineWidth / 2 * sqrt(2)), round(dec/4 + (m_lineWidth / 2 * sqrt(2))), round(dec/2));
arrow.pushLine(0, dec - ceil(m_lineWidth / 2 * sqrt(2)), round(dec/4 + (m_lineWidth / 2 * sqrt(2))), round(dec/2.));
// Left arrow
arrow.pushLine(0, dec - ceil(m_lineWidth / 2 * sqrt(2)), round(-dec/4 - (m_lineWidth / 2 * sqrt(2))), round(dec/2));
arrow.pushLine(0, dec - ceil(m_lineWidth / 2 * sqrt(2)), round(-dec/4 - (m_lineWidth / 2 * sqrt(2))), round(dec/2.));
}

float alpha = 0.38;
Expand Down
3 changes: 2 additions & 1 deletion src/RouteMapOverlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,8 @@ void RouteMapOverlay::RenderCurrent(wrDC &dc, PlugIn_ViewPort &vp)
#endif
double VW = d*VW1 + (1-d)*VW2;

g_LineBufferOverlay.pushSingleArrow(current_cache, x, y, VW, deg2rad(W+180), lat < 0 );
g_LineBufferOverlay.pushSingleArrow(current_cache, x, y, VW,
deg2rad(W+180) + nvp.rotation, lat < 0 );

}
skip:;
Expand Down

0 comments on commit b6af9b7

Please sign in to comment.