From 7cbc34257075d13db9cfb15eda474cf40c35d93f Mon Sep 17 00:00:00 2001 From: Don Ho Date: Tue, 11 Feb 2014 00:49:35 +0000 Subject: [PATCH] [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 --- PowerEditor/src/WinControls/DockingWnd/DockingCont.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/PowerEditor/src/WinControls/DockingWnd/DockingCont.cpp b/PowerEditor/src/WinControls/DockingWnd/DockingCont.cpp index 71ba4feaa..844ac0280 100644 --- a/PowerEditor/src/WinControls/DockingWnd/DockingCont.cpp +++ b/PowerEditor/src/WinControls/DockingWnd/DockingCont.cpp @@ -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)