diff options
author | George Hazan <george.hazan@gmail.com> | 2013-09-24 20:47:23 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-09-24 20:47:23 +0000 |
commit | 0aefd54a58157eb6272fea9018a63e7cf39d5cf2 (patch) | |
tree | 1754641cd4a19e7a1bdf8147b7387d949fd6d3e1 /protocols/JabberG/src/jabber_util.cpp | |
parent | edc889e1188d25838da939e0ec49f057ec7ee99e (diff) |
duplicate code removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@6219 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_util.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_util.cpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/protocols/JabberG/src/jabber_util.cpp b/protocols/JabberG/src/jabber_util.cpp index d2a4bf22e4..37cd2185fb 100644 --- a/protocols/JabberG/src/jabber_util.cpp +++ b/protocols/JabberG/src/jabber_util.cpp @@ -1362,48 +1362,6 @@ bool JabberReadXep203delay(HXML node, time_t &msgTime) return msgTime != 0;
}
-/////////////////////////////////////////////////////////////////////////////////////////
-// Premultiply bitmap channels for 32-bit bitmaps
-
-void JabberBitmapPremultiplyChannels(HBITMAP hBitmap)
-{
- BITMAP bmp;
- DWORD dwLen;
- BYTE *p;
- int x, y;
-
- GetObject(hBitmap, sizeof(bmp), &bmp);
-
- if (bmp.bmBitsPixel != 32)
- return;
-
- dwLen = bmp.bmWidth * bmp.bmHeight * (bmp.bmBitsPixel / 8);
- p = (BYTE *)malloc(dwLen);
- if (p == NULL)
- return;
- memset(p, 0, dwLen);
-
- GetBitmapBits(hBitmap, dwLen, p);
-
- for (y = 0; y < bmp.bmHeight; ++y)
- {
- BYTE *px = p + bmp.bmWidth * 4 * y;
-
- for (x = 0; x < bmp.bmWidth; ++x)
- {
- px[0] = px[0] * px[3] / 255;
- px[1] = px[1] * px[3] / 255;
- px[2] = px[2] * px[3] / 255;
-
- px += 4;
- }
- }
-
- SetBitmapBits(hBitmap, dwLen, p);
-
- free(p);
-}
-
BOOL CJabberProto::IsMyOwnJID(LPCTSTR szJID)
{
if ( !m_ThreadInfo)
|