mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Changed behavior so as not to indicate the error message box when DynamicVariables is 1 and FontSize is 0. (issue 126)
FIXED: Virtual Bytes usage for an x64 process with perfmon plugin does not display value greater than 4 GB (issue 113) The numerical value greater than 32bit can be now displayed when NumOfDecimals is 0 in Meter=STRING. Fixed the broken compatibility in Windows 2000. (AboutDialog, SysInfo)
This commit is contained in:
@ -100,9 +100,9 @@ UINT Initialize(HMODULE instance, LPCTSTR iniFile, LPCTSTR section, UINT id)
|
||||
This function is called when new value should be measured.
|
||||
The function returns the new value.
|
||||
*/
|
||||
UINT Update(UINT id)
|
||||
double Update2(UINT id)
|
||||
{
|
||||
UINT value = 0;
|
||||
double value = 0;
|
||||
|
||||
std::map<UINT, PerfMeasure*>::iterator i = g_Measures.find(id);
|
||||
if(i != g_Measures.end())
|
||||
@ -127,14 +127,14 @@ UINT Update(UINT id)
|
||||
// Compare with the old value
|
||||
if(!measure->FirstTime)
|
||||
{
|
||||
value = (UINT)(longvalue - measure->OldValue);
|
||||
value = (double)(longvalue - measure->OldValue);
|
||||
}
|
||||
measure->OldValue = longvalue;
|
||||
measure->FirstTime = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = (UINT)longvalue;
|
||||
value = (double)longvalue;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -15,7 +15,7 @@ extern "C"
|
||||
{
|
||||
__declspec( dllexport ) UINT Initialize(HMODULE instance, LPCTSTR iniFile, LPCTSTR section, UINT id);
|
||||
__declspec( dllexport ) void Finalize(HMODULE instance, UINT id);
|
||||
__declspec( dllexport ) UINT Update(UINT id);
|
||||
__declspec( dllexport ) double Update2(UINT id);
|
||||
__declspec( dllexport ) UINT GetPluginVersion();
|
||||
__declspec( dllexport ) LPCTSTR GetPluginAuthor();
|
||||
}
|
||||
|
Reference in New Issue
Block a user