mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-24 22:34:54 +02:00
Fix a regression due to usage of double buffer (2nd part)
Fix black text background in Find dialog status bar Regression introduced in 5b36e09 ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15319#issuecomment-2177773329 Close #15320
This commit is contained in:
parent
90762bbdda
commit
965e24859f
@ -4987,17 +4987,8 @@ void FindReplaceDlg::drawItem(LPDRAWITEMSTRUCT lpDrawItemStruct)
|
||||
}
|
||||
|
||||
SetTextColor(lpDrawItemStruct->hDC, fgColor);
|
||||
::SetBkMode(lpDrawItemStruct->hDC, TRANSPARENT);
|
||||
|
||||
COLORREF bgColor;
|
||||
if (NppDarkMode::isEnabled())
|
||||
{
|
||||
bgColor = NppDarkMode::getBackgroundColor();
|
||||
}
|
||||
else
|
||||
{
|
||||
bgColor = getCtrlBgColor(_statusBar.getHSelf());
|
||||
}
|
||||
::SetBkColor(lpDrawItemStruct->hDC, bgColor);
|
||||
RECT rect{};
|
||||
_statusBar.getClientRect(rect);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user