mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 05:45:00 +02:00
[BUG_FIXED] Fix docking tab icon display position.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1173 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
7edbd55348
commit
7cbc342570
@ -871,15 +871,8 @@ void DockingCont::drawTabItem(DRAWITEMSTRUCT *pDrawItemStruct)
|
||||
RECT & imageRect = info.rcImage;
|
||||
|
||||
ImageList_GetImageInfo(hImageList, iPosImage, &info);
|
||||
int dpiDynamicalSetting = NppParameters::getInstance()->_dpiManager.getDPIX();
|
||||
int iconDpiDynamicalY = 2; // By default, dpi == 96
|
||||
if (dpiDynamicalSetting == 120)
|
||||
iconDpiDynamicalY = 5;
|
||||
else if (dpiDynamicalSetting == 144)
|
||||
iconDpiDynamicalY = 11;
|
||||
else if (dpiDynamicalSetting == 192)
|
||||
iconDpiDynamicalY = 17;
|
||||
|
||||
int iconDpiDynamicalY = NppParameters::getInstance()->_dpiManager.scaleY(7);
|
||||
ImageList_Draw(hImageList, iPosImage, hDc, rc.left + 3, iconDpiDynamicalY, ILD_NORMAL);
|
||||
|
||||
if (isSelected)
|
||||
|
Loading…
x
Reference in New Issue
Block a user