mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Added ImagePath to all meters with general image options. This deprecates the Path option for Image meters.
Also fixes bug in MeterHistogram that crashes Rainmeter when the PrimaryImage is invalid. Note: For Histogram the option is called PrimaryImagePath, SecondaryImagePath, and BothImagePath
This commit is contained in:
@ -36,6 +36,7 @@ extern Rainmeter* g_Rainmeter;
|
||||
**
|
||||
*/
|
||||
MeterRotator::MeterRotator(MeterWindow* meterWindow, const WCHAR* name) : Meter(meterWindow, name),
|
||||
m_Image(L"ImageName", nullptr, false, meterWindow),
|
||||
m_NeedsReload(false),
|
||||
m_OffsetX(),
|
||||
m_OffsetY(),
|
||||
@ -87,8 +88,6 @@ void MeterRotator::ReadOptions(ConfigParser& parser, const WCHAR* section)
|
||||
m_ImageName = parser.ReadString(section, L"ImageName", L"");
|
||||
if (!m_ImageName.empty())
|
||||
{
|
||||
m_MeterWindow->MakePathAbsolute(m_ImageName);
|
||||
|
||||
// Read tinting options
|
||||
m_Image.ReadOptions(parser, section);
|
||||
}
|
||||
|
Reference in New Issue
Block a user