4 // ----------------------------------------------------------------------------------
\r
8 static XFONT *Font=NULL;
\r
12 XFONT_OpenDefaultFont(&Font); if (Font==NULL) return 1;
\r
21 int FontSetColour(unsigned int colour)
\r
23 Font->SetTextColor(colour);
\r
27 int FontText(WCHAR *text,int dx,int dy)
\r
29 if (Font==NULL || DirectBack==NULL) return 1;
\r
31 Font->TextOut(DirectBack,text,~0U,dx,dy);
\r
38 // ----------------------------------------------------------------------------------
\r
41 static ID3DXFont *Font=NULL;
\r
42 static unsigned int FontColour=0;
\r
48 memset(&lf,0,sizeof(lf));
\r
49 strcpy(lf.lfFaceName,"Arial");
\r
51 D3DXCreateFontIndirect(Device,&lf,&Font);
\r
61 int FontSetColour(unsigned int colour)
\r
63 FontColour=0xff000000|colour;
\r
67 int FontText(WCHAR *text,int dx,int dy)
\r
69 RECT rect={0,0,0,0};
\r
71 if (Font==NULL || DirectBack==NULL) return 1;
\r
76 rect.right=MainWidth;
\r
77 rect.bottom=MainHeight;
\r
79 Font->DrawTextW(text,-1,&rect,DT_LEFT,FontColour);
\r