From f2f35f3828e12febb12fca4acff99325bcdf8f9c Mon Sep 17 00:00:00 2001 From: Rainer Kottenhoff Date: Mon, 27 Nov 2017 15:17:42 +0100 Subject: [PATCH] + revert to Scintilla's old (default) font rendering technology (modern DirectWrite available by [Settings2] SciDirectWriteTech=1) --- src/Notepad3.c | 3 ++- src/SciCall.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Notepad3.c b/src/Notepad3.c index f903125f6..2d4555220 100644 --- a/src/Notepad3.c +++ b/src/Notepad3.c @@ -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); diff --git a/src/SciCall.h b/src/SciCall.h index d15958ddd..6c1dc2cf4 100644 --- a/src/SciCall.h +++ b/src/SciCall.h @@ -159,6 +159,7 @@ DeclareSciCallV2(SetProperty, SETPROPERTY, const char *, key, const char *, valu // SetTechnology // // +DeclareSciCallV0(UnBufferedDraw, SETBUFFEREDDRAW); DeclareSciCallV1(SetTechnology, SETTECHNOLOGY, int, technology);