[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:
Don Ho 2014-02-11 00:49:35 +00:00
parent 7edbd55348
commit 7cbc342570
1 changed files with 1 additions and 8 deletions

View File

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