diff options
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r-- | protocols/FacebookRM/src/avatars.cpp | 2 | ||||
-rw-r--r-- | protocols/FacebookRM/src/proto.h | 4 | ||||
-rw-r--r-- | protocols/FacebookRM/src/theme.cpp | 6 |
3 files changed, 5 insertions, 7 deletions
diff --git a/protocols/FacebookRM/src/avatars.cpp b/protocols/FacebookRM/src/avatars.cpp index e73c034968..ae0f2f40b3 100644 --- a/protocols/FacebookRM/src/avatars.cpp +++ b/protocols/FacebookRM/src/avatars.cpp @@ -57,7 +57,7 @@ void FacebookProto::CheckAvatarChange(HANDLE hContact, std::string image_url) if (image_url.empty())
return;
- bool big_avatars = (bool)db_get_b(NULL, m_szModuleName, FACEBOOK_KEY_BIG_AVATARS, DEFAULT_BIG_AVATARS);
+ bool big_avatars = db_get_b(NULL, m_szModuleName, FACEBOOK_KEY_BIG_AVATARS, DEFAULT_BIG_AVATARS) != 0;
// We've got url to avatar of default size 32x32px, let's change it to slightly bigger (50x50px) - looks like maximum size for square format
std::tstring::size_type pos = image_url.rfind( "/s32x32/" );
diff --git a/protocols/FacebookRM/src/proto.h b/protocols/FacebookRM/src/proto.h index 41bf2e513e..0637b90f5e 100644 --- a/protocols/FacebookRM/src/proto.h +++ b/protocols/FacebookRM/src/proto.h @@ -186,9 +186,7 @@ public: void parseSmileys(std::string message, HANDLE hContact);
// Handles, Locks
- HGENMENU m_hMenuRoot;
- HGENMENU m_hMenuServicesRoot;
- HANDLE m_hStatusMind;
+ HGENMENU m_hMenuRoot, m_hMenuServicesRoot, m_hStatusMind;
HANDLE signon_lock_;
HANDLE avatar_lock_;
diff --git a/protocols/FacebookRM/src/theme.cpp b/protocols/FacebookRM/src/theme.cpp index f2b14ce3bf..e7dff88aba 100644 --- a/protocols/FacebookRM/src/theme.cpp +++ b/protocols/FacebookRM/src/theme.cpp @@ -247,7 +247,7 @@ void FacebookProto::ToggleStatusMenuItems( BOOL bEnable ) CLISTMENUITEM clmi = {sizeof(clmi)};
clmi.flags = CMIM_FLAGS | (( bEnable ) ? 0 : CMIF_GRAYED);
- CallService( MS_CLIST_MODIFYMENUITEM, (WPARAM)m_hMenuRoot, ( LPARAM )&clmi );
- CallService( MS_CLIST_MODIFYMENUITEM, (WPARAM)m_hStatusMind, ( LPARAM )&clmi );
- CallService( MS_CLIST_MODIFYMENUITEM, (WPARAM)m_hMenuServicesRoot, ( LPARAM )&clmi );
+ Menu_ModifyItem(m_hMenuRoot, &clmi );
+ Menu_ModifyItem(m_hStatusMind, &clmi );
+ Menu_ModifyItem(m_hMenuServicesRoot, &clmi );
}
|