diff --git a/launch.ps1 b/launch.ps1 index bc57171..a08ba28 100644 --- a/launch.ps1 +++ b/launch.ps1 @@ -24,9 +24,9 @@ cmake -G "Visual Studio 17 2022" -A x64 -S . -B ./build/ if ($LASTEXITCODE -eq 0) { # DEBUG version - cmake --build ./build/ --config DEBUG + # cmake --build ./build/ --config DEBUG # RELEASE version - # cmake --build ./build/ --config RELEASE + cmake --build ./build/ --config RELEASE if ($LASTEXITCODE -eq 0) { $content = Get-Content -Path "./CMakeLists.txt" diff --git a/main.cpp b/main.cpp index 747456b..2b566fc 100644 --- a/main.cpp +++ b/main.cpp @@ -116,8 +116,10 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, // 初始化小鹤双拼的码表,纯双拼二码 // std::string dbPath = "../../src/flyciku.db"; - // std::string dbPath = "./db/flyciku.db"; - std::string dbPath = "./build/Debug/db/flyciku.db"; + // 如果是发布阶段,就用这个 + std::string dbPath = "./db/flyciku.db"; + // 如果是调试阶段,那么,就用下面这个 + // std::string dbPath = "./build/Debug/db/flyciku.db"; // sqlPageMap = transTableToMap(dbPath, 8); // // 如果把这个放到钩子函数里面会导致程序很慢的 db = openSqlite(dbPath); diff --git a/src/utils/caret_helper.cpp b/src/utils/caret_helper.cpp index e8269ce..419a5c3 100644 --- a/src/utils/caret_helper.cpp +++ b/src/utils/caret_helper.cpp @@ -154,9 +154,9 @@ std::pair getGeneralCaretPos() if (caretPos.first == 0 && caretPos.second == 0) { // caretPos = getCursorPosBySys(); - caretPos = getCenterPointPosOfCurScreen(); - caretPos.first += 20; - caretPos.second += 30; + caretPos = getCenterPointPosOfCurScreen(); // 既然是中心点的坐标,那么,就不需要做多余的处理 + // caretPos.first += 20; + // caretPos.second += 30; } // std::cout << caretPos.first << '\t' << caretPos.second << '\n';