URI:
   DIR Return Create A Forum - Home
       ---------------------------------------------------------
       Hack Community
  HTML https://roshacks.createaforum.com
       ---------------------------------------------------------
       *****************************************************
   DIR Return to: Codes
       *****************************************************
       #Post#: 71--------------------------------------------------
       [C++] DrawCornerBox
   DIR By: pipo1337
       Date: April 2, 2018, 4:50 am
       ---------------------------------------------------------
       --- Code ---
       void DrawCornerBox(LPDIRECT3DDEVICE9 Device, int x, int y, int
       w, int h, int borderPx, DWORD borderColor)
       {
       DrawP(Device, x - (w / 2), (y - h + borderPx), w / 3,
       borderPx, borderColor); //bottom
       DrawP(Device, x - (w / 2) + w - w / 3, (y - h + borderPx), w
       / 3, borderPx, borderColor); //bottom
       DrawP(Device, x - (w / 2), (y - h + borderPx), borderPx, w /
       3, borderColor); //left
       DrawP(Device, x - (w / 2), (y - h + borderPx) + h - w / 3,
       borderPx, w / 3, borderColor); //left
       DrawP(Device, x - (w / 2), y, w / 3, borderPx, borderColor);
       //top
       DrawP(Device, x - (w / 2) + w - w / 3, y, w / 3, borderPx,
       borderColor); //top
       DrawP(Device, (x + w - borderPx) - (w / 2), (y - h +
       borderPx), borderPx, w / 3, borderColor);//right
       DrawP(Device, (x + w - borderPx) - (w / 2), (y - h +
       borderPx) + h - w / 3, borderPx, w / 3, borderColor);//right
       }
       --- End Code ---
       *****************************************************
       Page 1 of 1