From 7fe6e93058f0e9253e2a79d7fc2d7a136784f791 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 15 Mar 2013 16:26:10 +0000 Subject: various popup related code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@4056 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_modern/src/modern_popup.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'plugins/Clist_modern/src') diff --git a/plugins/Clist_modern/src/modern_popup.cpp b/plugins/Clist_modern/src/modern_popup.cpp index 93b6a8d084..0064089438 100644 --- a/plugins/Clist_modern/src/modern_popup.cpp +++ b/plugins/Clist_modern/src/modern_popup.cpp @@ -55,7 +55,6 @@ void ShowPopup(const char *title, const char *description, int type) // Make popup POPUPDATA ppd = { 0 }; - ppd.lchContact = 0; ppd.lchIcon = LoadSkinnedIcon(SKINICON_OTHER_MIRANDA); strncpy(ppd.lpzContactName, title == NULL ? "Modern Contact List" : title, SIZEOF(ppd.lpzContactName)-1); @@ -66,23 +65,12 @@ void ShowPopup(const char *title, const char *description, int type) ppd.lpzText[SIZEOF(ppd.lpzText)-1] = '\0'; } - if (type == POPUP_TYPE_NORMAL || type == POPUP_TYPE_TEST) { - ppd.colorBack = 0; - ppd.colorText = 0; - } - else { + if (type != POPUP_TYPE_NORMAL && type != POPUP_TYPE_TEST) { ppd.colorBack = -1; ppd.colorText = RGB(255,255,255); } ppd.PluginWindowProc = DumbPopupDlgProc; - - if (type == POPUP_TYPE_NORMAL || type == POPUP_TYPE_TEST) - ppd.iSeconds = 0; - else - ppd.iSeconds = 0; - - // Now that every field has been filled, we want to see the popup. PUAddPopUp(&ppd); } -- cgit v1.2.3