nanogui: getting to grips with Nano-X
Subject:
RE: getting to grips with Nano-X
From:
Simon Wood ####@####.####
Date:
15 Jun 2000 13:59:15 -0000
Message-Id: <44632C76B97BD211AF6B00805FADCAB202D73646@exchange.saltaire.pace.co.uk>
The missing code snippet is:
static void
handleevent(GR_EVENT *ep)
{
if (ep->type == GR_EVENT_TYPE_BUTTON_DOWN) {
fprintf(stderr, "ouch...");
GrSetGCForeground(gc1, BLUE);
GrFillRect(w1, gc1, 10, 10, 40, 40);
#if 1
sleep(10);
GrSetGCForeground(gc1, RED);
GrFillRect(w1, gc1, 10, 10, 40, 40);
#endif
fprintf(stderr, "!!!");
}
}