mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-03 12:04:39 +02:00
This commit is contained in:
parent
a9ed6b436b
commit
759fc1b0f3
@ -296,8 +296,20 @@ LRESULT Notepad_plus::init(HWND hwnd)
|
|||||||
_mainEditView.execute(SCI_SETCARETLINEVISIBLE, svp1._currentLineHilitingShow);
|
_mainEditView.execute(SCI_SETCARETLINEVISIBLE, svp1._currentLineHilitingShow);
|
||||||
_subEditView.execute(SCI_SETCARETLINEVISIBLE, svp1._currentLineHilitingShow);
|
_subEditView.execute(SCI_SETCARETLINEVISIBLE, svp1._currentLineHilitingShow);
|
||||||
|
|
||||||
|
UINT smoothingType = 0;
|
||||||
|
if (0 != ::SystemParametersInfo(SPI_GETFONTSMOOTHINGTYPE, 0, &smoothingType, 0))
|
||||||
|
{
|
||||||
|
if (FE_FONTSMOOTHINGCLEARTYPE == smoothingType)
|
||||||
|
{
|
||||||
_mainEditView.execute(SCI_SETFONTQUALITY, SC_EFF_QUALITY_LCD_OPTIMIZED);
|
_mainEditView.execute(SCI_SETFONTQUALITY, SC_EFF_QUALITY_LCD_OPTIMIZED);
|
||||||
_subEditView.execute(SCI_SETFONTQUALITY, SC_EFF_QUALITY_LCD_OPTIMIZED);
|
_subEditView.execute(SCI_SETFONTQUALITY, SC_EFF_QUALITY_LCD_OPTIMIZED);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Fail silently - font smoothing is not important enough to do anything else.
|
||||||
|
assert(false and "failed to retrieve system info 'SPI_GETFONTSMOOTHINGTYPE'");
|
||||||
|
}
|
||||||
|
|
||||||
_mainEditView.execute(SCI_SETCARETLINEVISIBLEALWAYS, true);
|
_mainEditView.execute(SCI_SETCARETLINEVISIBLEALWAYS, true);
|
||||||
_subEditView.execute(SCI_SETCARETLINEVISIBLEALWAYS, true);
|
_subEditView.execute(SCI_SETCARETLINEVISIBLEALWAYS, true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user