clear.c 400 Bytes
#include "libfb.h"
/*---------------------------------------------------------------------
                  Clear the screen
  ---------------------------------------------------------------------*/
void
fbClear(void)
{
  u32	*p, *e, v;
  
  p = (u32 *)osViGetNextFramebuffer();
  e = p + FB_SCREEN_WD*FB_SCREEN_HT/2;
  v =  FB_BGCOLOR | (FB_BGCOLOR << 16);
  do {
    *p++ = v;
  } while(p < e);
}