summaryrefslogtreecommitdiff
path: root/include/m_avatars.h
diff options
context:
space:
mode:
authorghazan <ghazan@miranda.im>2021-12-19 16:56:44 +0300
committerghazan <ghazan@miranda.im>2021-12-19 16:56:44 +0300
commitf37d8e059796ae661318656939d577198c67db3b (patch)
treec63dc007c02787560b286ebfaaf0d42c2c881956 /include/m_avatars.h
parent412a979505cdb849e4adb3b5ac6c16aedf7cdcf7 (diff)
header files fix to eliminate Windows types for mir_app
Diffstat (limited to 'include/m_avatars.h')
-rw-r--r--include/m_avatars.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/include/m_avatars.h b/include/m_avatars.h
index 6d83b924c4..e224c058e3 100644
--- a/include/m_avatars.h
+++ b/include/m_avatars.h
@@ -72,15 +72,15 @@ unless AF_FETCHIFPROTONOTVISIBLE is set.
struct AVATARCACHEENTRY
{
- MCONTACT hContact; // contacts handle, 0, if it is a protocol avatar
- HBITMAP hbmPic; // bitmap handle of the picutre itself
- DWORD dwFlags; // see above for flag values
- LONG bmHeight, bmWidth; // bitmap dimensions
- DWORD t_lastAccess; // last access time (currently unused, but plugins should still
+ MCONTACT hContact; // contacts handle, 0, if it is a protocol avatar
+ HBITMAP hbmPic; // bitmap handle of the picutre itself
+ uint32_t dwFlags; // see above for flag values
+ int bmHeight, bmWidth; // bitmap dimensions
+ uint32_t t_lastAccess; // last access time (currently unused, but plugins should still
// use it whenever they access the avatar. may be used in the future
- // to implement cache expiration
- LPVOID lpDIBSection; // unused field
- wchar_t szFilename[MAX_PATH]; // filename of the avatar (absolute path)
+ // to implement cache expiration
+ void *lpDIBSection; // unused field
+ wchar_t szFilename[MAX_PATH]; // filename of the avatar (absolute path)
};
#define AVDRQ_FALLBACKPROTO 0x0001 // use the protocol picture as fallback (currently not used)
@@ -103,12 +103,12 @@ struct AVATARDRAWREQUEST
MCONTACT hContact; // the contact for which the avatar should be drawn. set it to 0 to draw a protocol picture
HDC hTargetDC; // target device context
RECT rcDraw; // target rectangle. The avatar will be centered within the rectangle and scaled to fit.
- DWORD dwFlags; // flags (see above for valid bitflags)
- DWORD dwReserved; // for future use
- DWORD dwInternal; // don't use it
+ uint32_t dwFlags; // flags (see above for valid bitflags)
+ uint32_t dwReserved; // for future use
+ uint32_t dwInternal; // don't use it
COLORREF clrBorder; // color for the border (used with AVDRQ_DRAWBORDER)
- UCHAR radius; // radius (used with AVDRQ_ROUNDEDCORNER)
- UCHAR alpha; // alpha value for semi-transparent avatars (valid values form 1 to 255, if it is set to 0
+ uint8_t radius; // radius (used with AVDRQ_ROUNDEDCORNER)
+ uint8_t alpha; // alpha value for semi-transparent avatars (valid values form 1 to 255, if it is set to 0
// the avatar won't be transparent.
char *szProto; // only used when AVDRQ_PROTOPICT or AVDRQ_OWNPIC is set
};