diff --git a/Library/MeterWindow.cpp b/Library/MeterWindow.cpp index 2ee7a636..62ded457 100644 --- a/Library/MeterWindow.cpp +++ b/Library/MeterWindow.cpp @@ -99,7 +99,7 @@ CMeterWindow::CMeterWindow(std::wstring& config, std::wstring& iniFile) m_Refreshing = false; m_NativeTransparency = true; m_MeasuresToVariables = false; - m_AllowNegativeCoordinates = true; + //m_AllowNegativeCoordinates = true; m_SavePosition = false; // Must be false m_AlphaValue = 255; m_FadeDuration = 250; @@ -422,13 +422,13 @@ void CMeterWindow::MapCoordsToScreen(int& x, int& y, int w, int h) */ void CMeterWindow::MoveWindow(int x, int y) { - if (!m_AllowNegativeCoordinates) - { - RECT r; - GetClientRect(GetDesktopWindow(), &r); - if(x < 0) x += r.right; - if(y < 0) y += r.bottom; - } + //if (!m_AllowNegativeCoordinates) + //{ + // RECT r; + // GetClientRect(GetDesktopWindow(), &r); + // if(x < 0) x += r.right; + // if(y < 0) y += r.bottom; + //} SetWindowPos(m_Window, NULL, x, y, 0, 0, SWP_NOZORDER | SWP_NOSIZE | SWP_NOACTIVATE); @@ -1200,7 +1200,6 @@ void CMeterWindow::ReadConfig() m_SavePosition = 0!=parser.ReadInt(section, L"SavePosition", m_SavePosition); m_SnapEdges = 0!=parser.ReadInt(section, L"SnapEdges", m_SnapEdges); m_MeasuresToVariables = 0!=parser.ReadInt(section, L"MeasuresToVariables", m_MeasuresToVariables); - m_AllowNegativeCoordinates = 0!=parser.ReadInt(section, L"AllowNegativeCoordinates", m_AllowNegativeCoordinates); m_NativeTransparency = 0!=parser.ReadInt(section, L"NativeTransparency", m_NativeTransparency); m_ClickThrough = 0!=parser.ReadInt(section, L"ClickThrough", m_ClickThrough); m_KeepOnScreen = 0!=parser.ReadInt(section, L"KeepOnScreen", m_KeepOnScreen); diff --git a/Library/MeterWindow.h b/Library/MeterWindow.h index 5b56df22..bb15c6b8 100644 --- a/Library/MeterWindow.h +++ b/Library/MeterWindow.h @@ -276,7 +276,6 @@ private: int m_AlphaValue; // The 'from' transparency value 0 - 255 int m_FadeDuration; // Time it takes to fade the window bool m_MeasuresToVariables; // If true, Measured values are transformed to Litestep's eVars - bool m_AllowNegativeCoordinates; // If true, Negative coordinates are OK ZPOSITION m_WindowZPosition; // Window's Z-position bool m_DynamicWindowSize; // bool m_ClickThrough; //