+ revert to Scintilla's old (default) font rendering technology (modern DirectWrite available by [Settings2] SciDirectWriteTech=1)

This commit is contained in:
Rainer Kottenhoff 2017-11-27 15:17:42 +01:00
parent 2eeb276700
commit f2f35f3828
2 changed files with 3 additions and 1 deletions

View File

@ -645,6 +645,7 @@ int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInst,LPSTR lpCmdLine,int n
return FALSE;
if (IsVista()) {
SciCall_UnBufferedDraw();
if (iSciDirectWriteTech >= 0)
SciCall_SetTechnology(DirectWriteTechnology[iSciDirectWriteTech]);
}
@ -5875,7 +5876,7 @@ void LoadSettings()
dwFileCheckInverval = IniSectionGetInt(pIniSection,L"FileCheckInverval",2000);
dwAutoReloadTimeout = IniSectionGetInt(pIniSection,L"AutoReloadTimeout",2000);
iSciDirectWriteTech = IniSectionGetInt(pIniSection,L"SciDirectWriteTech",1);
iSciDirectWriteTech = IniSectionGetInt(pIniSection,L"SciDirectWriteTech",0);
iSciDirectWriteTech = max(min(iSciDirectWriteTech,3),-1);
iSciFontQuality = IniSectionGetInt(pIniSection,L"SciFontQuality",3);

View File

@ -159,6 +159,7 @@ DeclareSciCallV2(SetProperty, SETPROPERTY, const char *, key, const char *, valu
// SetTechnology
//
//
DeclareSciCallV0(UnBufferedDraw, SETBUFFEREDDRAW);
DeclareSciCallV1(SetTechnology, SETTECHNOLOGY, int, technology);