Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
dfober committed Jan 7, 2024
1 parent e9fdb47 commit 4939e6a
Showing 1 changed file with 1 addition and 31 deletions.
32 changes: 1 addition & 31 deletions src/engine/graphic/GRInstrument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,39 +95,9 @@ void GRInstrument::getMetrics(VGDevice & hdc, float& h, float& w) const
// -----------------------------------------------------------------------------
void GRInstrument::OnDraw(VGDevice & hdc) const
{
// repeated instr are drawn by GRStaff
if(!mDraw || !mShow || getARInstrument()->repeat()) return;

OnDraw(hdc, mPosition.y);
//
// const string name = getARInstrument()->getName();
// if (name.empty()) return;
//
// hdc.SetTextFont( fFont );
// const VGColor prevTextColor = hdc.GetFontColor();
//
// if( mColRef )
// hdc.SetFontColor( VGColor( mColRef ));
// hdc.SetFontAlign( fTextAlign );
//
// NVPoint refpos = getReferencePosition();
// const NVPoint & offset = getOffset();
// const NVPoint pos = mPosition;
// float w, h;
// getMetrics(hdc, h, w);
// if (getARInstrument()->autoPos())
// refpos = NVPoint(gCurSystem->getBoundingBox().left - LSPACE*4, fRefPos.y);
//
// float x = pos.x + offset.x + refpos.x;
// float y = pos.y + offset.y + refpos.y;
// if (fSubstrings.size() > 1) {
// for (auto a: fSubstrings) {
// hdc.DrawString(x, y, a.c_str(), (int)a.size());
// y += h;
// }
// }
// else hdc.DrawString (x, y, name.c_str(), int(name.size()) );
// if( mColRef )
// hdc.SetFontColor( prevTextColor );
}


Expand Down

0 comments on commit 4939e6a

Please sign in to comment.