Using all parameters of a function? I'm confused
<pre><code>DrawBorderBox(55, 20, 200, 50, 4, fontBlack, pDevice );

void Menu::DrawBorderBox( int x, int y, int w, int h, int thickness, D3DCOLOR Colour, LPDIRECT3DDEVICE9 pDevice)
{
    //Top horiz line
    DrawFilledRect( x, y, w, thickness,  Colour, pDevice );
    //Left vertical line
    DrawFilledRect( x, y, thickness, h, Colour, pDevice );
    //right vertical line
    DrawFilledRect( (x + w), y, thickness, h, Colour, pDevice );
    //bottom horiz line
    DrawFilledRect( x, y + h, w+thickness, thickness, Colour, pDevice );
}

void Menu::DrawFilledRect(int x, int y, int w, int h, D3DCOLOR color, LPDIRECT3DDEVICE9 pDevice)
{
    //We create our rectangle to draw on screen
    D3DRECT BarRect = { x, y, x + w, y + h }; 
    //We clear that portion of the screen and display our rectangle
    pDevice-&gt;Clear(1, &amp;BarRect, D3DCLEAR_TARGET | D3DCLEAR_TARGET, color, 0, 0);
}
</code></pre>

<p>The values entered into <code>DrawBorderBox</code> are used in <code>BarRect</code>, well the call to <code>DrawFilledRect</code> doesn't use all the parameters? So does <code>BarRect</code> assume <code>h</code>?</p>

<p>So I get (55,20) point 1 and (255,70) point 2? But this says it draws 1 line? I'm confused.</p>

<p>I think thickness is being used as h in BarRect??? I'm I correct?
Which means that it would actually overwrite 4 pixels down of the original square?</p>
