This commit is contained in:
恍兮惚兮 2024-11-15 06:57:51 +08:00
parent b80e429ab6
commit 1729eed5be
2 changed files with 9 additions and 1 deletions

View File

@ -4,7 +4,7 @@ static auto LUNA_UPDATE_PREPARED_OK = RegisterWindowMessage(L"LUNA_UPDATE_PREPAR
static auto WM_MAGPIE_SCALINGCHANGED = RegisterWindowMessage(L"MagpieScalingChanged");
bool IsColorSchemeChangeMessage(LPARAM lParam)
{
return lParam && CompareStringOrdinal(reinterpret_cast<LPCWCH>(lParam), -1, L"ImmersiveColorSet", -1, TRUE) == CSTR_EQUAL;
return lParam && wcscmp(reinterpret_cast<LPCWCH>(lParam), L"ImmersiveColorSet") == 0;
}
void globalmessagelistener_1(void *callback)
{

View File

@ -13,6 +13,14 @@ def parsecode(code: str):
'"./files/runtime/PyQt5/Qt5/plugins"',
'"./files/runtime/Lib/site-packages/PyQt5/plugins"',
)
code = code.replace(
"./files/runtime/PyQt5/Qt5/bin/Qt5Core.dll",
"./files/runtime/Lib/site-packages/PyQt5/Qt5Core.dll",
)
code = code.replace(
' windows.addenvpath("./files/runtime/")',
' windows.addenvpath("./files/runtime/")\n windows.addenvpath("./files/runtime/Lib/site-packages/PyQt5")',
)
code = code.replace("self.parent().devicePixelRatioF()", "1")
code = code.replace("self.devicePixelRatioF()", "1")
code = re.sub(