Skip to content

Commit

Permalink
Direct2D Update
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsNT committed Jan 12, 2025
1 parent 73caa56 commit ef6f1d3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions src/engine/graphic/GRDynamics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,13 @@ const GRDynamics::TXSegment* GRDynamics::getSegment(const GRSystem* system) cons
}


void GRDynamics::GetMap(GuidoElementSelector sel, MapCollector& f, MapInfos& infos) const
{
if (sel == kDynSel)
SendMap(f, getRelativeTimePosition(), getDuration(), kDyn, infos);
}


//---------------------------------------------------------------------------------
void GRDynamics::DrawDynamic( VGDevice & hdc, bool cresc) const
{
Expand Down
1 change: 1 addition & 0 deletions src/engine/graphic/GRDynamics.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class GRDynamics : public GRPTagARNotationElement
virtual void accept (GRVisitor& visitor);

virtual const GRDynamics * isGRDynamic() const { return this; }
virtual void GetMap(GuidoElementSelector sel, MapCollector& f, MapInfos& infos) const;

protected:
typedef struct TXSegment {
Expand Down
4 changes: 2 additions & 2 deletions src/engine/include/GUIDOScoreMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
//------------------------------------------------------------------------------
// graphic elements selector definitions
typedef enum {
kGuidoPage, kGuidoSystem, kGuidoSystemSlice, kGuidoStaff, /*kGuidoMeasure,*/ kGuidoBar, kGuidoBarAndEvent, kGuidoEvent, kClefSel, kMeterSel, kTextSel, kKeySel,
kGuidoPage, kGuidoSystem, kGuidoSystemSlice, kGuidoStaff, /*kGuidoMeasure,*/ kGuidoBar, kGuidoBarAndEvent, kGuidoEvent, kClefSel, kMeterSel, kTextSel, kKeySel, kDynSel,
kGuidoScoreElementEnd
} GuidoElementSelector;

// graphic elements type definitions
typedef enum {
kNote = 1, kRest, kEmpty, kBar, kRepeatBegin, kRepeatEnd, kStaff, kSystemSlice, kSystem, kPage, kGraceNote, kClef, kMeter, kText, kKey
kNote = 1, kRest, kEmpty, kBar, kRepeatBegin, kRepeatEnd, kStaff, kSystemSlice, kSystem, kPage, kGraceNote, kClef, kMeter, kText, kKey, kDyn
} GuidoElementType;


Expand Down

0 comments on commit ef6f1d3

Please sign in to comment.