mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-11 21:03:05 +08:00
+ revert to Scintilla's old (default) font rendering technology (modern DirectWrite available by [Settings2] SciDirectWriteTech=1)
This commit is contained in:
parent
2eeb276700
commit
f2f35f3828
@ -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);
|
||||
|
||||
@ -159,6 +159,7 @@ DeclareSciCallV2(SetProperty, SETPROPERTY, const char *, key, const char *, valu
|
||||
// SetTechnology
|
||||
//
|
||||
//
|
||||
DeclareSciCallV0(UnBufferedDraw, SETBUFFEREDDRAW);
|
||||
DeclareSciCallV1(SetTechnology, SETTECHNOLOGY, int, technology);
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user