From d31f128ef9ba878ad09ee4f2981f942fb2384fdf Mon Sep 17 00:00:00 2001 From: Takase <20792268+takase1121@users.noreply.github.com> Date: Thu, 9 Mar 2023 21:58:32 +0800 Subject: [PATCH] refactor(main): move SetProcessDPIAware to manifests (#1413) --- resources/windows/lite-xl.exe.manifest.in | 7 +++++++ src/main.c | 8 +------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/resources/windows/lite-xl.exe.manifest.in b/resources/windows/lite-xl.exe.manifest.in index 9e787587..a01ac8d2 100644 --- a/resources/windows/lite-xl.exe.manifest.in +++ b/resources/windows/lite-xl.exe.manifest.in @@ -24,6 +24,13 @@ /> + + + + true + + + diff --git a/src/main.c b/src/main.c index 1959e738..607f8734 100644 --- a/src/main.c +++ b/src/main.c @@ -144,13 +144,7 @@ void set_macos_bundle_resources(lua_State *L); #endif int main(int argc, char **argv) { -#ifdef _WIN32 - HINSTANCE lib = LoadLibrary("user32.dll"); - int (*SetProcessDPIAware)() = (void*) GetProcAddress(lib, "SetProcessDPIAware"); - SetProcessDPIAware(); -#elif defined(__amigaos4__) || defined(__morphos__) - setlocale(LC_ALL, "C"); -#else +#ifndef _WIN32 signal(SIGPIPE, SIG_IGN); #endif