Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
brianferguson committed Sep 18, 2022
1 parent 6377a20 commit b8e1a60
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions Library/MeterHistogram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ MeterHistogram::MeterHistogram(Skin* skin, const WCHAR* name) : Meter(skin, name
m_PrimaryColor(D2D1::ColorF(D2D1::ColorF::Green)),
m_SecondaryColor(D2D1::ColorF(D2D1::ColorF::Red)),
m_OverlapColor(D2D1::ColorF(D2D1::ColorF::Yellow)),
m_MeterPos(),
m_MeterPos(0),
m_Autoscale(false),
m_Flip(false),
m_PrimaryImage(L"PrimaryImage", c_PrimaryOptionArray, false, skin),
m_SecondaryImage(L"SecondaryImage", c_SecondaryOptionArray, false, skin),
m_OverlapImage(L"BothImage", c_BothOptionArray, false, skin),
m_PrimaryValues(),
m_SecondaryValues(),
m_PrimaryValues(nullptr),
m_SecondaryValues(nullptr),
m_MaxPrimaryValue(1.0),
m_MinPrimaryValue(),
m_MinPrimaryValue(0.0),
m_MaxSecondaryValue(1.0),
m_MinSecondaryValue(),
m_MinSecondaryValue(0.0),
m_SizeChanged(true),
m_GraphStartLeft(false),
m_GraphHorizontalOrientation(false)
Expand Down Expand Up @@ -372,7 +372,7 @@ bool MeterHistogram::Draw(Gfx::Canvas& canvas)
int displayH = (int)(meterRect.bottom - meterRect.top);

// Default values (GraphStart=Right, GraphOrientation=Vertical)
int i;
int i = 0;
int startValue = 0;
int* endValueLHS = &i;
int* endValueRHS = &displayW;
Expand Down
4 changes: 2 additions & 2 deletions Library/MeterLine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ MeterLine::MeterLine(Skin* skin, const WCHAR* name) : Meter(skin, name),
m_LineWidth(1.0),
m_HorizontalColor(D2D1::ColorF(D2D1::ColorF::Black)),
m_StrokeType(D2D1_STROKE_TRANSFORM_TYPE_NORMAL),
m_CurrentPos(),
m_CurrentPos(0),
m_GraphStartLeft(false),
m_GraphHorizontalOrientation(false)
{
Expand Down Expand Up @@ -84,7 +84,7 @@ void MeterLine::Initialize()
*/
void MeterLine::ReadOptions(ConfigParser& parser, const WCHAR* section)
{
WCHAR tmpName[64];
WCHAR tmpName[64] = { 0 };

// Store the current number of lines so we know if the buffer needs to be updated
int oldLineCount = (int)m_Colors.size();
Expand Down
2 changes: 1 addition & 1 deletion Library/MeterRoundLine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ bool MeterRoundLine::Update()
}

Measure* measure = m_Measures[0];
if (m_ValueRemainder > 0)
if (m_ValueRemainder > 0U)
{
LONGLONG time = (LONGLONG)measure->GetValue();
m_Value = (double)(time % m_ValueRemainder);
Expand Down

0 comments on commit b8e1a60

Please sign in to comment.