From ab53b72bf7067feb9dede0fd76b5a3cbc13863b9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 2 Jun 2015 15:55:48 +0000 Subject: - old PNG conversion code (png2dib, dib2png) removed; - m_png.h also removed; - all calls of LoadImage replaced with CallService(MS_IMG_LOAD); - four invalid CloseHandle() calls removed; - massive code cleaning for Popup, HistoryStats & SplashScreen plugins git-svn-id: http://svn.miranda-ng.org/main/trunk@13974 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/HistoryStats/src/mu_common.cpp | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'plugins/HistoryStats/src/mu_common.cpp') diff --git a/plugins/HistoryStats/src/mu_common.cpp b/plugins/HistoryStats/src/mu_common.cpp index 17c84e7eee..74cd534b0f 100644 --- a/plugins/HistoryStats/src/mu_common.cpp +++ b/plugins/HistoryStats/src/mu_common.cpp @@ -206,32 +206,6 @@ namespace mu } } - /* - * png - */ - - namespace png - { - bool _available() - { - return - true && - ServiceExists(MS_DIB2PNG); - } - - bool dibToPng(const BITMAPINFOHEADER* pBMIH, const BYTE* pDIData, BYTE* pImageData, long* pImageLen) - { - DIB2PNG info; - - info.pbmi = const_cast(reinterpret_cast(pBMIH)); - info.pDiData = const_cast(pDIData); - info.pResult = pImageData; - info.pResultLen = pImageLen; - - return bool_(CallService(MS_DIB2PNG, 0, reinterpret_cast(&info))); - } - } - /* * proto */ -- cgit v1.2.3