diff --git a/Application/Application.vcproj b/Application/Application.vcproj
index 4ea2c874..0b042fe1 100644
--- a/Application/Application.vcproj
+++ b/Application/Application.vcproj
@@ -290,7 +290,7 @@
/>
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;