Example #1
0
/* set clip box. All routines can only draw in this box. if x1==-1 the
   box is the whole screen */
void ws_setclipping(int x1, int y1, int x2, int y2) {
    if (x1 < 0) {
        GrResetClipBox();
    }
    else {
        GrSetClipBox(x1, y1, x2, y2);
    }
}
Example #2
0
static void paint_foot(char *s)
{
    grt_centered.txo_fgcolor.v = LIGHTGREEN;
    grt_centered.txo_font = grf_std;

    GrSetClipBox(10, 440, 630, 470);
    GrClearClipBox(CYAN);
    GrDrawString(s, strlen(s), 320, 455, &grt_centered);
    GrResetClipBox();
}