improve handling of no hardware acceleration

This commit is contained in:
Vendicated
2025-06-08 21:21:57 +02:00
parent 48e9aea47e
commit fcb61c8f42
5 changed files with 29 additions and 6 deletions

View File

@@ -21,6 +21,10 @@ addPatch({
// eslint-disable-next-line no-useless-escape
match: /(focus(\(\i\)){).{0,150}?\.focus\(\i,\i\)/,
replace: "$1VesktopNative.win.focus$2"
},
{
match: /,getEnableHardwareAcceleration/,
replace: "$&:VesktopNative.app.getEnableHardwareAcceleration,_oldGetEnableHardwareAcceleration"
}
]
}