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
This commit is contained in:
xomx 2025-03-15 16:07:47 +01:00 committed by Don Ho
parent 659330e81a
commit a679e8ebfb
3 changed files with 5 additions and 3 deletions

View File

@ -5,7 +5,7 @@ Translation note:
2. All the comments are for explanation, they are not for translation. 2. All the comments are for explanation, they are not for translation.
--> -->
<NotepadPlus> <NotepadPlus>
<Native-Langue name="English" filename="english.xml" version="8.7.8"> <Native-Langue name="English" filename="english.xml" version="8.7.9">
<Menu> <Menu>
<Main> <Main>
<!-- Main Menu Entries --> <!-- Main Menu Entries -->
@ -1329,6 +1329,7 @@ Translation note:
<Element name="DirectWrite (default)"/> <Element name="DirectWrite (default)"/>
<Element name="DirectWrite (retain frames)"/> <Element name="DirectWrite (retain frames)"/>
<Element name="DirectWrite (draw to GDI DC)"/> <Element name="DirectWrite (draw to GDI DC)"/>
<Element name="DirectWrite (DirectX 11)"/>
</ComboBox> </ComboBox>
<Item id="6308" name="system tray"/> <Item id="6308" name="system tray"/>
<Item id="6363" name="rendering mode"/> <Item id="6363" name="rendering mode"/>

View File

@ -5,7 +5,7 @@ Translation note:
2. All the comments are for explanation, they are not for translation. 2. All the comments are for explanation, they are not for translation.
--> -->
<NotepadPlus> <NotepadPlus>
<Native-Langue name="English" filename="english_customizable.xml" version="8.7.8"> <Native-Langue name="English" filename="english_customizable.xml" version="8.7.9">
<Menu> <Menu>
<Main> <Main>
<!-- Main Menu Entries --> <!-- Main Menu Entries -->
@ -1329,6 +1329,7 @@ Translation note:
<Element name="DirectWrite (default)"/> <Element name="DirectWrite (default)"/>
<Element name="DirectWrite (retain frames)"/> <Element name="DirectWrite (retain frames)"/>
<Element name="DirectWrite (draw to GDI DC)"/> <Element name="DirectWrite (draw to GDI DC)"/>
<Element name="DirectWrite (DirectX 11)"/>
</ComboBox> </ComboBox>
<Item id="6308" name="system tray"/> <Item id="6308" name="system tray"/>
<Item id="6363" name="rendering mode"/> <Item id="6363" name="rendering mode"/>

View File

@ -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<LPARAM>(L"DirectWrite (default)")); ::SendDlgItemMessage(_hSelf, IDC_COMBO_SC_TECHNOLOGY_CHOICE, CB_ADDSTRING, 0, reinterpret_cast<LPARAM>(L"DirectWrite (default)"));
::SendDlgItemMessage(_hSelf, IDC_COMBO_SC_TECHNOLOGY_CHOICE, CB_ADDSTRING, 0, reinterpret_cast<LPARAM>(L"DirectWrite (retain frames)")); ::SendDlgItemMessage(_hSelf, IDC_COMBO_SC_TECHNOLOGY_CHOICE, CB_ADDSTRING, 0, reinterpret_cast<LPARAM>(L"DirectWrite (retain frames)"));
::SendDlgItemMessage(_hSelf, IDC_COMBO_SC_TECHNOLOGY_CHOICE, CB_ADDSTRING, 0, reinterpret_cast<LPARAM>(L"DirectWrite (draw to GDI DC)")); ::SendDlgItemMessage(_hSelf, IDC_COMBO_SC_TECHNOLOGY_CHOICE, CB_ADDSTRING, 0, reinterpret_cast<LPARAM>(L"DirectWrite (draw to GDI DC)"));
//::SendDlgItemMessage(_hSelf, IDC_COMBO_SC_TECHNOLOGY_CHOICE, CB_ADDSTRING, 0, reinterpret_cast<LPARAM>(L"DirectWrite (DirectX 11)")); ::SendDlgItemMessage(_hSelf, IDC_COMBO_SC_TECHNOLOGY_CHOICE, CB_ADDSTRING, 0, reinterpret_cast<LPARAM>(L"DirectWrite (DirectX 11)"));
if ((nppGUI._writeTechnologyEngine < 0) || (nppGUI._writeTechnologyEngine > directWriteTechnologyUnavailable)) if ((nppGUI._writeTechnologyEngine < 0) || (nppGUI._writeTechnologyEngine > directWriteTechnologyUnavailable))
nppGUI._writeTechnologyEngine = directWriteTechnology; nppGUI._writeTechnologyEngine = directWriteTechnology;