Browse Source

Prevent DirectWrite from being ON under Windows Sever (Core)

pull/15333/head
Don Ho 5 months ago
parent
commit
6b441b738a
  1. 4
      PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp

4
PowerEditor/src/ScintillaComponent/ScintillaEditView.cpp

@ -19,6 +19,7 @@
#include <shlwapi.h>
#include <cinttypes>
#include <windowsx.h>
#include <versionhelpers.h>
#include "ScintillaEditView.h"
#include "Parameters.h"
#include "localization.h"
@ -314,7 +315,8 @@ void ScintillaEditView::init(HINSTANCE hInst, HWND hPere)
if (hNtdllModule)
isWINE = ::GetProcAddress(hNtdllModule, "wine_get_version");
if (isWINE) // There is a performance issue under WINE when DirectWright is ON, so we turn it off if user uses Notepad++ under WINE
if (isWINE || // There is a performance issue under WINE when DirectWrite is ON, so we turn it off if user uses Notepad++ under WINE
::IsWindowsServer()) // In the case of Windows Server Core, DirectWrite cannot be on.
nppGui._writeTechnologyEngine = defaultTechnology;
if (nppGui._writeTechnologyEngine == directWriteTechnology)

Loading…
Cancel
Save