Skip to content

Commit

Permalink
Remove zone changes in drawing method
Browse files Browse the repository at this point in the history
  • Loading branch information
yinanazhou committed May 7, 2024
1 parent 337ae37 commit 5d66475
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/view_element.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -678,19 +678,6 @@ void View::DrawClef(DeviceContext *dc, LayerElement *element, Layer *layer, Staf

this->DrawSmuflCode(dc, x, y, sym, staff->m_drawingStaffSize, false);

if (m_doc->IsTranscription() && element->HasFacs()) {
const int noteHeight
= (int)(m_doc->GetDrawingDoubleUnit(staff->m_drawingStaffSize) / NOTE_HEIGHT_TO_STAFF_SIZE_RATIO);
const int noteWidth
= (int)(m_doc->GetDrawingDoubleUnit(staff->m_drawingStaffSize) / NOTE_WIDTH_TO_STAFF_SIZE_RATIO);

FacsimileInterface *fi = element->GetFacsimileInterface();
fi->GetZone()->SetUlx(x);
fi->GetZone()->SetUly(ToDeviceContextY(y));
fi->GetZone()->SetLrx(x + noteWidth);
fi->GetZone()->SetLry(ToDeviceContextY(y - noteHeight));
}

// Possibly draw enclosing brackets
this->DrawClefEnclosing(dc, clef, staff, sym, x, y);

Expand Down

0 comments on commit 5d66475

Please sign in to comment.