diff --git a/src/Global/FanyDefines.h b/src/Global/FanyDefines.h index acd1b4ff..8d11e290 100644 --- a/src/Global/FanyDefines.h +++ b/src/Global/FanyDefines.h @@ -1,10 +1,12 @@ #pragma once #include #include +#include namespace Global { inline std::wstring ZEN_BROWSER = L"zen.exe"; // inline std::unordered_set VSCodeSeries = {L"Code.exe", L"Code - Insiders.exe", L"VSCodium.exe"}; // inline bool IsVSCodeLike = false; +inline LONG INVALID_Y = -100000; } // namespace Global \ No newline at end of file diff --git a/src/Tf/TfTextLayoutSink.cpp b/src/Tf/TfTextLayoutSink.cpp index 55f78b8c..767407f9 100644 --- a/src/Tf/TfTextLayoutSink.cpp +++ b/src/Tf/TfTextLayoutSink.cpp @@ -1,3 +1,4 @@ +#include "FanyDefines.h" #include "Private.h" #include "TfTextLayoutSink.h" #include "MetasequoiaIME.h" @@ -216,7 +217,7 @@ HRESULT CTfTextLayoutSink::_GetTextExt(_Out_ RECT *lpRect) #endif // Set default value to make sure the window is hidden by moving it out of the screen lpRect->left = 0; - lpRect->bottom = -1000; + lpRect->bottom = Global::INVALID_Y; } #ifdef FANY_DEBUG // TODO: Log lpRect position