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);