summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/TSButton.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-05-27 16:05:30 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-05-27 16:05:30 +0300
commite3179c1ef509482ff9b4c7d4fb89d0b208e84000 (patch)
tree1977dabbd3ff94309a888e299ea4a938633d00d0 /plugins/TabSRMM/src/TSButton.cpp
parent3a85dd706f5a03164f402f7d350f03bba5e6f764 (diff)
obsolete calls of GetVersion() removed & replaced with IsWinVer*Plus() calls
Diffstat (limited to 'plugins/TabSRMM/src/TSButton.cpp')
-rw-r--r--plugins/TabSRMM/src/TSButton.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/TSButton.cpp b/plugins/TabSRMM/src/TSButton.cpp
index c131168cc2..dbb373f302 100644
--- a/plugins/TabSRMM/src/TSButton.cpp
+++ b/plugins/TabSRMM/src/TSButton.cpp
@@ -159,7 +159,7 @@ static void PaintWorker(TSButtonCtrl *ctl, HDC hdcPaint)
dat->m_pContainer->m_cachedToolbarDC, pt.x, 1, SRCCOPY);
}
if (ctl->hThemeToolbar && ctl->bIsThemed && 1 == dat->m_pContainer->m_bTBRenderingMode) {
- if (bAero || PluginConfig.m_WinVerMajor >= 6)
+ if (bAero || IsWinVerVistaPlus())
DrawThemeBackground(ctl->hThemeToolbar, hdcMem, 8, RBStateConvert2Flat(state), &rcClient, &rcClient);
else
DrawThemeBackground(ctl->hThemeToolbar, hdcMem, TP_BUTTON, TBStateConvert2Flat(state), &rcClient, &rcClient);