DragonNest/Common/EtInterface/EtUITextUtil.cpp
2024-12-20 16:56:44 +08:00

24 lines
No EOL
1.2 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "StdAfx.h"
#include "EtUITextUtil.h"
#ifdef _DEBUG
#define new new(_NORMAL_BLOCK,__FILE__,__LINE__)
#endif
namespace CEtInterface
{
namespace debug
{
void OutputDebugUICoord( const wchar_t *pString, const SUICoord& coord, float fWidth, float fHeight )
{
int nX = (int)(coord.fX * fWidth);
int nY = (int)(coord.fY * fHeight);
int nW = (int)(coord.fWidth * fWidth);
int nH = (int)(coord.fHeight * fHeight);
wchar_t strTemp[256]={0};
swprintf( strTemp, 256, L"%s, UICoord=[X:%d][Y:%d][W:%d][H:%d]\n", pString, nX, nY, nW, nH );
OutputDebugStringW( strTemp );
}
}
}