int CenterX = GetSystemMetrics( 0 ) / 2;//Gets screen X resolution then cutting it in half to get the center. int CenterY = GetSystemMetrics( 1 ) / 2;//Gets screen Y resolution then cutting it in half to get the center.
void cBase::FillRGB( int x, int y, int w, int h, D3DCOLOR color, IDirect3DDevice9* pDevice )
{
D3DRECT rec = { x, y, x + w, y + h };
pDevice->Clear( 1, &rec, D3DCLEAR_TARGET, color, 0, 0 );
}
FillRGB(CenterX-15, CenterY, 30, 1,Red,pDevice);FillRGB(CenterX, CenterY-15, 1, 30,Red,pDevice);
FillRGB(20, 200, 150, 400,Red,pDevice);