From a679e8ebfb425ae4c71a34a2080dd1a9a376acd6 Mon Sep 17 00:00:00 2001 From: xomx Date: Sat, 15 Mar 2025 16:07:47 +0100 Subject: [PATCH] Enable new low-level DirectX11 DirectWrite 1.1 Scintilla rendering mode Allow selection of the Scintilla v5.5.5 SC_TECHNOLOGY_DIRECT_WRITE_1 (Windows 7 SP1 and newer only). Close #16284 --- PowerEditor/installer/nativeLang/english.xml | 3 ++- PowerEditor/installer/nativeLang/english_customizable.xml | 3 ++- PowerEditor/src/WinControls/Preference/preferenceDlg.cpp | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/PowerEditor/installer/nativeLang/english.xml b/PowerEditor/installer/nativeLang/english.xml index 63954cb34..6ce23f061 100644 --- a/PowerEditor/installer/nativeLang/english.xml +++ b/PowerEditor/installer/nativeLang/english.xml @@ -5,7 +5,7 @@ Translation note: 2. All the comments are for explanation, they are not for translation. --> - +
@@ -1329,6 +1329,7 @@ Translation note: + diff --git a/PowerEditor/installer/nativeLang/english_customizable.xml b/PowerEditor/installer/nativeLang/english_customizable.xml index ee20afb43..92fdedc0a 100644 --- a/PowerEditor/installer/nativeLang/english_customizable.xml +++ b/PowerEditor/installer/nativeLang/english_customizable.xml @@ -5,7 +5,7 @@ Translation note: 2. All the comments are for explanation, they are not for translation. --> - +
@@ -1329,6 +1329,7 @@ Translation note: + diff --git a/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp b/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp index ac62818d2..08c42d8cd 100644 --- a/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp +++ b/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp @@ -2475,7 +2475,7 @@ intptr_t CALLBACK MiscSubDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM) ::SendDlgItemMessage(_hSelf, IDC_COMBO_SC_TECHNOLOGY_CHOICE, CB_ADDSTRING, 0, reinterpret_cast(L"DirectWrite (default)")); ::SendDlgItemMessage(_hSelf, IDC_COMBO_SC_TECHNOLOGY_CHOICE, CB_ADDSTRING, 0, reinterpret_cast(L"DirectWrite (retain frames)")); ::SendDlgItemMessage(_hSelf, IDC_COMBO_SC_TECHNOLOGY_CHOICE, CB_ADDSTRING, 0, reinterpret_cast(L"DirectWrite (draw to GDI DC)")); - //::SendDlgItemMessage(_hSelf, IDC_COMBO_SC_TECHNOLOGY_CHOICE, CB_ADDSTRING, 0, reinterpret_cast(L"DirectWrite (DirectX 11)")); + ::SendDlgItemMessage(_hSelf, IDC_COMBO_SC_TECHNOLOGY_CHOICE, CB_ADDSTRING, 0, reinterpret_cast(L"DirectWrite (DirectX 11)")); if ((nppGUI._writeTechnologyEngine < 0) || (nppGUI._writeTechnologyEngine > directWriteTechnologyUnavailable)) nppGUI._writeTechnologyEngine = directWriteTechnology;