diff options
author | George Hazan <ghazan@miranda.im> | 2018-12-24 19:53:50 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-12-24 19:53:50 +0300 |
commit | 7ed195f3bfe7512511abe502b4eeb447281ac3c5 (patch) | |
tree | fae229cbd6dbbde118141d62ad3b5c5d3a190b48 /protocols/Discord/src | |
parent | 7f5b936071e3a02fee7f7156157f2d0f776bb395 (diff) |
minor code cleaning
Diffstat (limited to 'protocols/Discord/src')
-rw-r--r-- | protocols/Discord/src/avatars.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/protocols/Discord/src/avatars.cpp b/protocols/Discord/src/avatars.cpp index ead76f36da..7b6e763b3d 100644 --- a/protocols/Discord/src/avatars.cpp +++ b/protocols/Discord/src/avatars.cpp @@ -41,10 +41,6 @@ INT_PTR CDiscordProto::GetAvatarCaps(WPARAM wParam, LPARAM lParam) ((POINT*)lParam)->x = ((POINT*)lParam)->y = 128; break; - case AF_PROPORTION: - res = PIP_NONE; - break; - case AF_FORMATSUPPORTED: res = lParam == PA_FORMAT_PNG || lParam == PA_FORMAT_GIF || lParam == PA_FORMAT_JPEG; break; @@ -53,8 +49,7 @@ INT_PTR CDiscordProto::GetAvatarCaps(WPARAM wParam, LPARAM lParam) case AF_DONTNEEDDELAYS: case AF_FETCHIFPROTONOTVISIBLE: case AF_FETCHIFCONTACTOFFLINE: - res = 1; - break; + return 1; } return res; |