- MeasureScript: Added files that uses pre-compile header.

- Code cleanup.
This commit is contained in:
spx 2010-12-13 09:00:02 +00:00
parent 3fc3566937
commit 13e9f54d2a
6 changed files with 61 additions and 4 deletions

View File

@ -220,7 +220,7 @@ void CConfigParser::ResetMonitorVariables(CMeterWindow* meterWindow)
*/
void CConfigParser::SetMultiMonitorVariables(bool reset)
{
TCHAR buffer[256];
WCHAR buffer[32];
RECT workArea, scrArea;
if (!reset && c_MonitorVariables.empty())
@ -280,7 +280,7 @@ void CConfigParser::SetMultiMonitorVariables(bool reset)
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;
@ -328,7 +328,7 @@ void CConfigParser::SetAutoSelectedMonitorVariables(CMeterWindow* meterWindow)
{
if (meterWindow)
{
TCHAR buffer[256];
WCHAR buffer[32];
if (CSystem::GetMonitorCount() > 0)
{

View File

@ -2479,6 +2479,24 @@
<File
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
RelativePath=".\lua\LuaManager.h"
@ -2487,6 +2505,24 @@
<File
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
RelativePath=".\lua\LuaPush.h"
@ -2495,6 +2531,24 @@
<File
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
RelativePath=".\lua\LuaScript.h"

View File

@ -1915,7 +1915,7 @@ bool CRainmeter::DeactivateConfig(CMeterWindow* meterWindow, int configIndex)
void CRainmeter::WriteActive(const std::wstring& config, int iniIndex)
{
WCHAR buffer[256];
WCHAR buffer[32];
wsprintf(buffer, L"%i", iniIndex + 1);
WritePrivateProfileString(config.c_str(), L"Active", buffer, m_IniFile.c_str());
}

View File

@ -1,3 +1,4 @@
#include "../StdAfx.h"
#include "LuaManager.h"
#include "../Rainmeter.h"

View File

@ -1,3 +1,4 @@
#include "../StdAfx.h"
#include "LuaPush.h"
#include "../Litestep.h"

View File

@ -1,3 +1,4 @@
#include "../StdAfx.h"
#include "LuaScript.h"
#include "LuaManager.h"
#include "../Rainmeter.h"