mirror of
				https://github.com/chibicitiberiu/rainmeter-studio.git
				synced 2024-02-24 04:33:31 +00:00 
			
		
		
		
	The WORKAREAHEIGHT wasn't calculated correctly. Fixed.
This commit is contained in:
		| @@ -290,7 +290,7 @@ | ||||
| 			/> | ||||
| 			<Tool | ||||
| 				Name="VCPostBuildEventTool" | ||||
| 				CommandLine="if not exist ..\testbench\x32\debug\skins (mkdir ..\testbench\x32\debug\skins)
xcopy /S /Y ..\Install\Skins ..\testbench\x32\debug\skins
" | ||||
| 				CommandLine="if not exist ..\testbench\x32\debug\skins (mkdir ..\testbench\x32\debug\skins)
echo "Copying the skins..."
xcopy /Q /S /Y ..\Install\Skins ..\testbench\x32\debug\skins
" | ||||
| 			/> | ||||
| 		</Configuration> | ||||
| 		<Configuration | ||||
| @@ -476,7 +476,7 @@ | ||||
| 			/> | ||||
| 			<Tool | ||||
| 				Name="VCPostBuildEventTool" | ||||
| 				CommandLine="if not exist ..\testbench\x32\release\skins (mkdir ..\testbench\x32\release\skins)
xcopy /S /Y ..\Install\Skins ..\testbench\x32\release\skins
" | ||||
| 				CommandLine="if not exist ..\testbench\x32\release\skins (mkdir ..\testbench\x32\release\skins)
echo "Copying the skins..."
xcopy /Q /S /Y ..\Install\Skins ..\testbench\x32\release\skins
" | ||||
| 			/> | ||||
| 		</Configuration> | ||||
| 		<Configuration | ||||
|   | ||||
| @@ -71,10 +71,13 @@ void CConfigParser::Initialize(LPCTSTR filename, CRainmeter* pRainmeter) | ||||
| 		m_Variables[L"CURRENTPATH"] = CRainmeter::ExtractPath(filename); | ||||
| 		m_Variables[L"ADDONSPATH"] = pRainmeter->GetPath() + L"Addons\\"; | ||||
|  | ||||
| 		RECT workArea; | ||||
| 		SystemParametersInfo(SPI_GETWORKAREA, 0, &workArea, 0); | ||||
|  | ||||
| 		TCHAR buffer[256]; | ||||
| 		swprintf(buffer, L"%i", GetSystemMetrics(SM_CXFULLSCREEN)); | ||||
| 		swprintf(buffer, L"%i", workArea.right - workArea.left); | ||||
| 		m_Variables[L"WORKAREAWIDTH"] = buffer; | ||||
| 		swprintf(buffer, L"%i", GetSystemMetrics(SM_CYFULLSCREEN)); | ||||
| 		swprintf(buffer, L"%i", workArea.bottom - workArea.top); | ||||
| 		m_Variables[L"WORKAREAHEIGHT"] = buffer; | ||||
| 		swprintf(buffer, L"%i", GetSystemMetrics(SM_CXSCREEN)); | ||||
| 		m_Variables[L"SCREENAREAWIDTH"] = buffer; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Kimmo Pekkola
					Kimmo Pekkola