/* /* HIDDEN_SYMBOLS *
Clear the on screen buffer with a specified color.  */
void ge2dClearScreen(int color)
/* /* HIDDEN_SYMBOLS *
Clear the on screen buffer with a specified color.  */
void ge2dClearScreen(int color)
{
    UINT32 cmd32;
    UINT32 color32, dest_pitch, dest_dimension;
    color32 = make_color(color);
    cmd32 = 0xcc430040;
    outpw(REG_GE2D_CTL, cmd32);
    outpw(REG_GE2D_BGCOLR, color32);
    dest_pitch = GFX_WIDTH << 16;
    outpw(REG_GE2D_SDPITCH, dest_pitch);
    outpw(REG_GE2D_DSTSPA, 0);
    dest_dimension = GFX_HEIGHT << 16 | GFX_WIDTH;
    outpw(REG_GE2D_RTGLSZ, dest_dimension);
    NU_GE2D_GO();
    NU_GE2D_COND_WAIT();
    NU_GE2D_UNLOCK();
}