mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
- MeasureScript: Added files that uses pre-compile header.
- Code cleanup.
This commit is contained in:
parent
3fc3566937
commit
13e9f54d2a
@ -220,7 +220,7 @@ void CConfigParser::ResetMonitorVariables(CMeterWindow* meterWindow)
|
|||||||
*/
|
*/
|
||||||
void CConfigParser::SetMultiMonitorVariables(bool reset)
|
void CConfigParser::SetMultiMonitorVariables(bool reset)
|
||||||
{
|
{
|
||||||
TCHAR buffer[256];
|
WCHAR buffer[32];
|
||||||
RECT workArea, scrArea;
|
RECT workArea, scrArea;
|
||||||
|
|
||||||
if (!reset && c_MonitorVariables.empty())
|
if (!reset && c_MonitorVariables.empty())
|
||||||
@ -280,7 +280,7 @@ void CConfigParser::SetMultiMonitorVariables(bool reset)
|
|||||||
|
|
||||||
for (size_t i = 0; i < monitors.size(); ++i)
|
for (size_t i = 0; i < monitors.size(); ++i)
|
||||||
{
|
{
|
||||||
TCHAR buffer2[256];
|
WCHAR buffer2[64];
|
||||||
|
|
||||||
const RECT work = (monitors[i].active) ? monitors[i].work : workArea;
|
const RECT work = (monitors[i].active) ? monitors[i].work : workArea;
|
||||||
|
|
||||||
@ -328,7 +328,7 @@ void CConfigParser::SetAutoSelectedMonitorVariables(CMeterWindow* meterWindow)
|
|||||||
{
|
{
|
||||||
if (meterWindow)
|
if (meterWindow)
|
||||||
{
|
{
|
||||||
TCHAR buffer[256];
|
WCHAR buffer[32];
|
||||||
|
|
||||||
if (CSystem::GetMonitorCount() > 0)
|
if (CSystem::GetMonitorCount() > 0)
|
||||||
{
|
{
|
||||||
|
@ -2479,6 +2479,24 @@
|
|||||||
<File
|
<File
|
||||||
RelativePath=".\lua\LuaManager.cpp"
|
RelativePath=".\lua\LuaManager.cpp"
|
||||||
>
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
UsePrecompiledHeader="2"
|
||||||
|
PrecompiledHeaderThrough="../StdAfx.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|x64"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
UsePrecompiledHeader="2"
|
||||||
|
PrecompiledHeaderThrough="../StdAfx.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\lua\LuaManager.h"
|
RelativePath=".\lua\LuaManager.h"
|
||||||
@ -2487,6 +2505,24 @@
|
|||||||
<File
|
<File
|
||||||
RelativePath=".\lua\LuaPush.cpp"
|
RelativePath=".\lua\LuaPush.cpp"
|
||||||
>
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
UsePrecompiledHeader="2"
|
||||||
|
PrecompiledHeaderThrough="../StdAfx.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|x64"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
UsePrecompiledHeader="2"
|
||||||
|
PrecompiledHeaderThrough="../StdAfx.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\lua\LuaPush.h"
|
RelativePath=".\lua\LuaPush.h"
|
||||||
@ -2495,6 +2531,24 @@
|
|||||||
<File
|
<File
|
||||||
RelativePath=".\lua\LuaScript.cpp"
|
RelativePath=".\lua\LuaScript.cpp"
|
||||||
>
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
UsePrecompiledHeader="2"
|
||||||
|
PrecompiledHeaderThrough="../StdAfx.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|x64"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
UsePrecompiledHeader="2"
|
||||||
|
PrecompiledHeaderThrough="../StdAfx.h"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\lua\LuaScript.h"
|
RelativePath=".\lua\LuaScript.h"
|
||||||
|
@ -1915,7 +1915,7 @@ bool CRainmeter::DeactivateConfig(CMeterWindow* meterWindow, int configIndex)
|
|||||||
|
|
||||||
void CRainmeter::WriteActive(const std::wstring& config, int iniIndex)
|
void CRainmeter::WriteActive(const std::wstring& config, int iniIndex)
|
||||||
{
|
{
|
||||||
WCHAR buffer[256];
|
WCHAR buffer[32];
|
||||||
wsprintf(buffer, L"%i", iniIndex + 1);
|
wsprintf(buffer, L"%i", iniIndex + 1);
|
||||||
WritePrivateProfileString(config.c_str(), L"Active", buffer, m_IniFile.c_str());
|
WritePrivateProfileString(config.c_str(), L"Active", buffer, m_IniFile.c_str());
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include "../StdAfx.h"
|
||||||
#include "LuaManager.h"
|
#include "LuaManager.h"
|
||||||
#include "../Rainmeter.h"
|
#include "../Rainmeter.h"
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include "../StdAfx.h"
|
||||||
#include "LuaPush.h"
|
#include "LuaPush.h"
|
||||||
|
|
||||||
#include "../Litestep.h"
|
#include "../Litestep.h"
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include "../StdAfx.h"
|
||||||
#include "LuaScript.h"
|
#include "LuaScript.h"
|
||||||
#include "LuaManager.h"
|
#include "LuaManager.h"
|
||||||
#include "../Rainmeter.h"
|
#include "../Rainmeter.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user