From 7e299fdd31d4340588a70d4378f500065166f961 Mon Sep 17 00:00:00 2001 From: Don HO Date: Mon, 16 May 2016 18:19:42 +0200 Subject: [PATCH] Fix status bar display bug in high dpi environment Fixes #1536, fixes #356, fixes #366, fixes #539, fixes #1447 --- PowerEditor/src/Notepad_plus.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index d3f72a493..dc97358e7 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -364,11 +364,11 @@ LRESULT Notepad_plus::init(HWND hwnd) //--Status Bar Section--// bool willBeShown = nppGUI._statusBarShow; _statusBar.init(_pPublicInterface->getHinst(), hwnd, 6); - _statusBar.setPartWidth(STATUSBAR_DOC_SIZE, 200); - _statusBar.setPartWidth(STATUSBAR_CUR_POS, 260); - _statusBar.setPartWidth(STATUSBAR_EOF_FORMAT, 110); - _statusBar.setPartWidth(STATUSBAR_UNICODE_TYPE, 120); - _statusBar.setPartWidth(STATUSBAR_TYPING_MODE, 30); + _statusBar.setPartWidth(STATUSBAR_DOC_SIZE, NppParameters::getInstance()->_dpiManager.scaleX(200)); + _statusBar.setPartWidth(STATUSBAR_CUR_POS, NppParameters::getInstance()->_dpiManager.scaleX(260)); + _statusBar.setPartWidth(STATUSBAR_EOF_FORMAT, NppParameters::getInstance()->_dpiManager.scaleX(110)); + _statusBar.setPartWidth(STATUSBAR_UNICODE_TYPE, NppParameters::getInstance()->_dpiManager.scaleX(120)); + _statusBar.setPartWidth(STATUSBAR_TYPING_MODE, NppParameters::getInstance()->_dpiManager.scaleX(30)); _statusBar.display(willBeShown); _pMainWindow = &_mainDocTab;