mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Tweaks.
This commit is contained in:
parent
68bc25ee82
commit
9a19d8808e
@ -76,12 +76,12 @@ bool CMeasureDiskSpace::Update()
|
||||
|
||||
if (sizeResult)
|
||||
{
|
||||
m_Value = (double)((m_Total) ? i64TotalBytes : i64FreeBytes).QuadPart;
|
||||
m_Value = (double)(__int64)((m_Total) ? i64TotalBytes : i64FreeBytes).QuadPart;
|
||||
|
||||
if (i64TotalBytes.QuadPart != m_OldTotalBytes)
|
||||
{
|
||||
// Total size was changed, so set new max value.
|
||||
m_MaxValue = (double)i64TotalBytes.QuadPart;
|
||||
m_MaxValue = (double)(__int64)i64TotalBytes.QuadPart;
|
||||
m_OldTotalBytes = i64TotalBytes.QuadPart;
|
||||
}
|
||||
}
|
||||
@ -188,7 +188,7 @@ void CMeasureDiskSpace::ReadConfig(CConfigParser& parser, const WCHAR* section)
|
||||
|
||||
if (result)
|
||||
{
|
||||
m_MaxValue = (double)i64TotalBytes.QuadPart;
|
||||
m_MaxValue = (double)(__int64)i64TotalBytes.QuadPart;
|
||||
m_OldTotalBytes = i64TotalBytes.QuadPart;
|
||||
}
|
||||
else
|
||||
|
@ -55,7 +55,7 @@ bool CMeasureNetIn::Update()
|
||||
|
||||
if (m_Cumulative)
|
||||
{
|
||||
m_Value = (double)GetNetStatsValue(NET_IN);
|
||||
m_Value = (double)(__int64)GetNetStatsValue(NET_IN);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -82,7 +82,7 @@ bool CMeasureNetIn::Update()
|
||||
m_FirstTime = false;
|
||||
}
|
||||
|
||||
m_Value = (double)value;
|
||||
m_Value = (double)(__int64)value;
|
||||
}
|
||||
|
||||
return PostUpdate();
|
||||
|
@ -55,7 +55,7 @@ bool CMeasureNetOut::Update()
|
||||
|
||||
if (m_Cumulative)
|
||||
{
|
||||
m_Value = (double)GetNetStatsValue(NET_OUT);
|
||||
m_Value = (double)(__int64)GetNetStatsValue(NET_OUT);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -82,7 +82,7 @@ bool CMeasureNetOut::Update()
|
||||
m_FirstTime = false;
|
||||
}
|
||||
|
||||
m_Value = (double)value;
|
||||
m_Value = (double)(__int64)value;
|
||||
}
|
||||
|
||||
return PostUpdate();
|
||||
|
@ -55,7 +55,7 @@ bool CMeasureNetTotal::Update()
|
||||
|
||||
if (m_Cumulative)
|
||||
{
|
||||
m_Value = (double)GetNetStatsValue(NET_TOTAL);
|
||||
m_Value = (double)(__int64)GetNetStatsValue(NET_TOTAL);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -82,7 +82,7 @@ bool CMeasureNetTotal::Update()
|
||||
m_FirstTime = false;
|
||||
}
|
||||
|
||||
m_Value = (double)value;
|
||||
m_Value = (double)(__int64)value;
|
||||
}
|
||||
|
||||
return PostUpdate();
|
||||
|
@ -93,14 +93,14 @@ void CMeterImage::LoadImage(const std::wstring& imageName, bool bLoadAlways)
|
||||
{
|
||||
if (!m_HeightDefined)
|
||||
{
|
||||
m_H = (imageW == 0) ? 0 : (m_Tile) ? imageH : (int)(m_W * imageH / (double)imageW);
|
||||
m_H = (imageW == 0) ? 0 : (m_Tile) ? imageH : m_W * imageH / imageW;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (m_HeightDefined)
|
||||
{
|
||||
m_W = (imageH == 0) ? 0 : (m_Tile) ? imageW : (int)(m_H * imageW / (double)imageH);
|
||||
m_W = (imageH == 0) ? 0 : (m_Tile) ? imageW : m_H * imageW / imageH;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user