diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-11 18:58:18 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-11 18:58:18 +0300 |
commit | caf9d58899a7d059de9ebdfa7f7ee65177d265dc (patch) | |
tree | 370b9e919d92d17e44f2ed808db348c0c53422ba /plugins/TabSRMM/src/taskbar.cpp | |
parent | 22977408e43caa45687e0c9d5a003b800700bea9 (diff) |
TabSRMM:
- one shall not mix width & height;
- CSkin::ResizeBitmap became completely useless after linking FreeImage in
Diffstat (limited to 'plugins/TabSRMM/src/taskbar.cpp')
-rw-r--r-- | plugins/TabSRMM/src/taskbar.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/TabSRMM/src/taskbar.cpp b/plugins/TabSRMM/src/taskbar.cpp index 8db16253aa..20fe504dfc 100644 --- a/plugins/TabSRMM/src/taskbar.cpp +++ b/plugins/TabSRMM/src/taskbar.cpp @@ -748,12 +748,11 @@ void CThumbIM::update() void CThumbIM::renderContent()
{
double dNewWidth = 0.0, dNewHeight = 0.0;
- bool fFree = false;
HBITMAP hbmAvatar = (m_dat->m_ace && m_dat->m_ace->hbmPic) ? m_dat->m_ace->hbmPic : PluginConfig.g_hbmUnknown;
Utils::scaleAvatarHeightLimited(hbmAvatar, dNewWidth, dNewHeight, m_rcIcon.bottom - m_rcIcon.top);
- HBITMAP hbmResized = CSkin::ResizeBitmap(hbmAvatar, dNewWidth, dNewHeight, fFree);
+ HBITMAP hbmResized = ::Image_Resize(hbmAvatar, RESIZEBITMAP_STRETCH, dNewWidth, dNewHeight);
HDC dc = CreateCompatibleDC(m_hdc);
HBITMAP hbmOldAv = reinterpret_cast<HBITMAP>(::SelectObject(dc, hbmResized));
@@ -773,7 +772,7 @@ void CThumbIM::renderContent() if (hbmResized != hbmAvatar)
::DeleteObject(hbmResized);
- ::DeleteDC(dc);
+ ::DeleteDC(dc);
m_rcBottom.bottom -= 16;
/*
|