summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-06-15 23:06:12 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-06-15 23:06:12 +0300
commit751824c60f37e2c268fbd54deba8fccc30034436 (patch)
tree4dcf1b10de51584255fdab709853cee9ec6b0cea /src/mir_app
parenta984e6c6faa433370386365607b8a6bde8ae325f (diff)
DpiAware option moved to Windows-specific code in mir_core.dll
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/modules.cpp7
-rw-r--r--src/mir_app/src/newplugins.cpp1
2 files changed, 0 insertions, 8 deletions
diff --git a/src/mir_app/src/modules.cpp b/src/mir_app/src/modules.cpp
index e8dd32dfb2..0fb5de49e5 100644
--- a/src/mir_app/src/modules.cpp
+++ b/src/mir_app/src/modules.cpp
@@ -90,13 +90,6 @@ int LoadDefaultModules(void)
// load database drivers & service plugins without executing their Load()
if (LoadNewPluginsModuleInfos()) return 1;
- if (GetPrivateProfileInt(L"Interface", L"DpiAware", 0, mirandabootini) == 1) {
- typedef BOOL (WINAPI *SetProcessDPIAware_t)(void);
- SetProcessDPIAware_t pfn = (SetProcessDPIAware_t)GetProcAddress(GetModuleHandleW(L"user32"), "SetProcessDPIAware");
- if (pfn != nullptr)
- pfn();
- }
-
// the database will select which db plugin to use, or fail if no profile is selected
if (LoadDatabaseModule()) return 1;
if (LoadNetlibModule()) return 1;
diff --git a/src/mir_app/src/newplugins.cpp b/src/mir_app/src/newplugins.cpp
index 7ff6548751..301ef162d4 100644
--- a/src/mir_app/src/newplugins.cpp
+++ b/src/mir_app/src/newplugins.cpp
@@ -774,7 +774,6 @@ static BOOL scanPluginsDir(WIN32_FIND_DATA *fd, wchar_t *path, WPARAM, LPARAM)
int LoadNewPluginsModuleInfos(void)
{
bModuleInitialized = true;
- DeleteFile(L"mir_core.dll");
hevLoadModule = CreateHookableEvent(ME_SYSTEM_MODULELOAD);
hevUnloadModule = CreateHookableEvent(ME_SYSTEM_MODULEUNLOAD);