[chore]: Change a hard code
This commit is contained in:
1 parent
a630dc1c00
commit
7eb08d9aa4
2 files changed
+4
-1
No files matched your search
@@ -1,10 +1,12 @@
|
||||
#pragma once
|
||||
#include <string>
|
||||
#include <unordered_set>
|
||||
#include <Windows.h>
|
||||
|
||||
namespace Global
|
||||
{
|
||||
inline std::wstring ZEN_BROWSER = L"zen.exe";
|
||||
// inline std::unordered_set<std::wstring> VSCodeSeries = {L"Code.exe", L"Code - Insiders.exe", L"VSCodium.exe"};
|
||||
// inline bool IsVSCodeLike = false;
|
||||
inline LONG INVALID_Y = -100000;
|
||||
} // namespace Global
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user