summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-03-12 11:20:20 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-03-12 11:20:20 +0300
commit22e9271d3a5a72e15bfb87ce681e5f8f9d15962e (patch)
treeff5cdd702510c5e80a0747d14934c593815afac8 /plugins
parent167114a3b2144930c2db8d3e322f2452127f5016 (diff)
code cleaning
Diffstat (limited to 'plugins')
-rw-r--r--plugins/SplashScreen/src/debug.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/SplashScreen/src/debug.h b/plugins/SplashScreen/src/debug.h
index 7faeda827c..b4149d75f1 100644
--- a/plugins/SplashScreen/src/debug.h
+++ b/plugins/SplashScreen/src/debug.h
@@ -18,18 +18,18 @@ int inline _DebugPopup(MCONTACT hContact, wchar_t *fmt, ...)
va_start(va, fmt);
mir_snwprintf(debug, fmt, va);
-
- if(CallService(MS_POPUP_QUERY, PUQS_GETSTATUS, 0) == 1) {
+
+ if (Popup_Enabled()) {
POPUPDATAW ppd;
ppd.lchContact = hContact;
ppd.lchIcon = Skin_LoadIcon(SKINICON_OTHER_MIRANDA);
- if(hContact != 0)
+ if (hContact != 0)
mir_wstrncpy(ppd.lpwzContactName, Clist_GetContactDisplayName(hContact), MAX_CONTACTNAME);
else
mir_wstrncpy(ppd.lpwzContactName, _A2W(PlugName), MAX_CONTACTNAME);
mir_wstrncpy(ppd.lpwzText, debug, MAX_SECONDLINE - 20);
- ppd.colorText = RGB(255,255,255);
- ppd.colorBack = RGB(255,0,0);
+ ppd.colorText = RGB(255, 255, 255);
+ ppd.colorBack = RGB(255, 0, 0);
PUAddPopupW(&ppd);
}
return 0;