box.c 398 Bytes
#include "libfb.h"
/*---------------------------------------------------------------------
                  Make a box on the screen
  ---------------------------------------------------------------------*/
void
fbBox(int x0, int y0, int x1, int y1, u16 color)
{
  fbLine(x0, y0, x1, y0, color);
  fbLine(x0, y0, x0, y1, color);
  fbLine(x0, y1, x1, y1, color);
  fbLine(x1, y0, x1, y1, color);
}