summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/sidebar.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-01-26 17:38:31 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-01-26 17:38:31 +0300
commitdea9c030340e50324eba97c72a27c151bed12e1c (patch)
tree6fc156f40f52a9fc6e6b29e60001959477ee1a5e /plugins/TabSRMM/src/sidebar.cpp
parentc6e8f8223cab9d799593b7b2cfa22134aa9745d6 (diff)
AdvaImg:
- freeimage extracted to the separate library; - FI_INTERFACE removed, all references to it are replaced with direct calls of FreeImage_* functions; - unified project for AdvaImg
Diffstat (limited to 'plugins/TabSRMM/src/sidebar.cpp')
-rw-r--r--plugins/TabSRMM/src/sidebar.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/TabSRMM/src/sidebar.cpp b/plugins/TabSRMM/src/sidebar.cpp
index a2a1ab2219..f736e20e98 100644
--- a/plugins/TabSRMM/src/sidebar.cpp
+++ b/plugins/TabSRMM/src/sidebar.cpp
@@ -214,12 +214,13 @@ void CSideBarButton::RenderThis(const HDC hdc) const
if (fVertical) {
::SelectObject(hdcMem, hbmOld);
- FIBITMAP *fib = FIF->FI_CreateDIBFromHBITMAP(hbmMem);
- FIBITMAP *fib_new = FIF->FI_RotateClassic(fib, 90.0f);
- FIF->FI_Unload(fib);
+ FIBITMAP *fib = FreeImage_CreateDIBFromHBITMAP(hbmMem);
+ FIBITMAP *fib_new = FreeImage_Rotate(fib, 90.0f, nullptr);
+ FreeImage_Unload(fib);
::DeleteObject(hbmMem);
- hbmMem = FIF->FI_CreateHBITMAPFromDIB(fib_new);
- FIF->FI_Unload(fib_new);
+ hbmMem = FreeImage_CreateHBITMAPFromDIB(fib_new);
+ FreeImage_Unload(fib_new);
+
hbmOld = reinterpret_cast<HBITMAP>(::SelectObject(hdcMem, hbmMem));
::BitBlt(hdc, 0, 0, cy, cx, hdcMem, 0, 0, SRCCOPY);
::SelectObject(hdcMem, hbmOld);