mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-14 16:33:54 +08:00
fix
This commit is contained in:
parent
b80e429ab6
commit
1729eed5be
@ -4,7 +4,7 @@ static auto LUNA_UPDATE_PREPARED_OK = RegisterWindowMessage(L"LUNA_UPDATE_PREPAR
|
|||||||
static auto WM_MAGPIE_SCALINGCHANGED = RegisterWindowMessage(L"MagpieScalingChanged");
|
static auto WM_MAGPIE_SCALINGCHANGED = RegisterWindowMessage(L"MagpieScalingChanged");
|
||||||
bool IsColorSchemeChangeMessage(LPARAM lParam)
|
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)
|
void globalmessagelistener_1(void *callback)
|
||||||
{
|
{
|
||||||
|
@ -13,6 +13,14 @@ def parsecode(code: str):
|
|||||||
'"./files/runtime/PyQt5/Qt5/plugins"',
|
'"./files/runtime/PyQt5/Qt5/plugins"',
|
||||||
'"./files/runtime/Lib/site-packages/PyQt5/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.parent().devicePixelRatioF()", "1")
|
||||||
code = code.replace("self.devicePixelRatioF()", "1")
|
code = code.replace("self.devicePixelRatioF()", "1")
|
||||||
code = re.sub(
|
code = re.sub(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user