Skip to content

Commit 9cdf4d1

Browse files
committed
绘制插件项目后恢复默认字体,解决插件自绘时更改字体后影响下一插件项目字体的问题
1 parent 822af54 commit 9cdf4d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

TrafficMonitor/TaskBarDlg.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ void CTaskBarDlg::DrawPluginItem(IDrawCommon& drawer, IPluginItem* item, CRect r
440440
{
441441
auto* p_dc = static_cast<CDrawCommon&>(drawer).GetDC();
442442
item->DrawItem(p_dc->GetSafeHdc(), rect.left, rect.top, rect.Width(), rect.Height(), background_brightness < 128);
443+
p_dc->SelectObject(&m_font);
443444
}
444445
else if (typeid(drawer) == typeid(CTaskBarDlgDrawCommon))
445446
{

0 commit comments

Comments
 (0)