summaryrefslogtreecommitdiff
path: root/plugins/SplashScreen/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-14 21:05:30 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-14 21:05:30 +0000
commit45358c3507af7d4bb32c031eaa25708905effa91 (patch)
tree202fd149b18a39cfe6314f037421cf8d4fe2e842 /plugins/SplashScreen/src
parentae5bb5cc96d0f0add1d1189c2a3293daaea83d6f (diff)
old ansi popups removed, noone used them anyway
git-svn-id: http://svn.miranda-ng.org/main/trunk@4034 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SplashScreen/src')
-rw-r--r--plugins/SplashScreen/src/debug.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/SplashScreen/src/debug.h b/plugins/SplashScreen/src/debug.h
index 70e36dfaed..7338f644f0 100644
--- a/plugins/SplashScreen/src/debug.h
+++ b/plugins/SplashScreen/src/debug.h
@@ -13,16 +13,14 @@ extern TCHAR szLogFile[MAX_PATH];
int inline _DebugPopup(HANDLE hContact, TCHAR *fmt, ...)
{
- POPUPDATAT ppd;
va_list va;
TCHAR debug[1024];
va_start(va, fmt);
mir_sntprintf(debug, SIZEOF(debug), fmt, va);
- if(CallService(MS_POPUP_QUERY, PUQS_GETSTATUS, 0) == 1)
- {
- ZeroMemory((void *)&ppd, sizeof(ppd));
+ if(CallService(MS_POPUP_QUERY, PUQS_GETSTATUS, 0) == 1) {
+ POPUPDATAT ppd = { 0 };
ppd.lchContact = hContact;
ppd.lchIcon = LoadSkinnedIcon(SKINICON_OTHER_MIRANDA);
if(hContact != 0)
@@ -32,7 +30,7 @@ int inline _DebugPopup(HANDLE hContact, TCHAR *fmt, ...)
_tcsncpy_s(ppd.lptzText, debug, MAX_SECONDLINE - 20);
ppd.colorText = RGB(255,255,255);
ppd.colorBack = RGB(255,0,0);
- CallService(MS_POPUP_ADDPOPUP, (WPARAM)&ppd, 0);
+ PUAddPopUpT(&ppd);
}
return 0;
}