Texto com Borda

Posts 1–8 of 8 · Page 1 of 1
Texto com Borda

Code:
VOID Escrever(INT x, INT y, DWORD color, DWORD colorBorda, int larguraBorda, LPD3DXFONT g_pFont, CONST CHAR *fmt, ...)
{
	RECT FontPos1 = { x - larguraBorda, y, x + 120, y + 16 };
	RECT FontPos2 = { x, y - larguraBorda, x + 120, y + 16 };
	RECT FontPos3 = { x + larguraBorda, y, x + 120, y + 16 };
	RECT FontPos4 = { x, y + larguraBorda, x + 120, y + 16 };


	RECT FontPos = { x, y, x + 120, y + 16 };
	CHAR buf[1024] = {'\0'};
	va_list va_alist;


	va_start(va_alist, fmt);
	vsprintf_s(buf, fmt, va_alist);
	va_end(va_alist);


	g_pFont->DrawText(NULL, buf, -1, &FontPos1, DT_NOCLIP | DT_CENTER, colorBorda);
	g_pFont->DrawText(NULL, buf, -1, &FontPos2, DT_NOCLIP | DT_CENTER, colorBorda);
	g_pFont->DrawText(NULL, buf, -1, &FontPos3, DT_NOCLIP | DT_CENTER, colorBorda);
	g_pFont->DrawText(NULL, buf, -1, &FontPos4, DT_NOCLIP | DT_CENTER, colorBorda);


	g_pFont->DrawText(NULL, buf, -1, &FontPos, DT_NOCLIP | DT_CENTER, color);
}

Creditos: TokolocoSK
Quote Originally Posted by experthack View Post
Good Joob Man esse dai e mais legal que o do @Templar
Aquele é uma sombra...
Perfect cara adorei *--*
Agora os menus vão ficar salientes.. valew
OMD !
- VLW TOKO , VERY NICE !
Posts 1–8 of 8 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?