From 45358c3507af7d4bb32c031eaa25708905effa91 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 14 Mar 2013 21:05:30 +0000 Subject: old ansi popups removed, noone used them anyway git-svn-id: http://svn.miranda-ng.org/main/trunk@4034 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SplashScreen/src/debug.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'plugins/SplashScreen/src') 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; } -- cgit v1.2.3