Good afternoon, everybody, I have a problem with displaying d3d menu, namely DrawBox and DrawBorder.


But the code itself
Code:
void cMenu::Init()
{
	if (opt.options.reset)INIT=false;
	if(!INIT){
		opt.options.move=0;		// BUG FIX FOR RESET DISABLE MOVE BEFORE SETTING COORDINATES
		X=Y=10;			        // TOP LEFT START
		WIDTH=190;			    // MENU WIDTH
		I_OFS=4;			    // OFSET FOR ITEM
		S_OFS=WIDTH-2;			// OFSET FOR STATE
		T_SPC=16;				// Space from Title and Start of Items
		F_SPC=16;				// Footer Spacing Hook Menu
		I_SPC=15;				// Item Spacing
		I_CUR=0;				// Set current Item
		ABOR=0;					// ANIMATION MOVE
		BDIR=0;					// ANIMATION HIGHLIGHT
		SHOW=true;				// false=hide  true=show
		INIT=true;				// STOP INITATION
	}
}

		DrawBox(X,Y,WIDTH,T_SPC,C_BOX,pDevice);//TITLE
		DrawBorder(X,Y,WIDTH,T_SPC,C_BORDER,pDevice);
    	        font->DrawText(MC_FCTR(X,MC_MAXX),Y+2,C_TITLE,"ГЛАВНОЕ МЕНЮ",DT_CENTER|DT_SHADOW);


                DrawBox(X,MC_MSY,WIDTH,(NO*I_SPC),C_BOX,pDevice);//MENU
		DrawBorder(X,MC_MSY,WIDTH,(NO*I_SPC),C_BORDER,pDevice);
Here are screenshots of Test d3d9 in the game Point Blank.