The following code prepares the view structure for further use: InitView(&view); /* Initialize the View. */ view.Modes |= LACE; /* Only interlaced, 1.3 displays */ /* require this */ For Release 2 applications, a viewextra structure must also be created with gfxnew() and associated with this view with gfxassociate() as shown in the example programs rgbboxes.c and wbclone.c. /* Form the ModeID from values in <displayinfo.h> */ modeID=DEFAULT_MONITOR_ID | HIRESLACE_KEY; /* Make the ViewExtra structure */ if( vextra=GfxNew(VIEW_EXTRA_TYPE) ) { /* Attach the ViewExtra to the View */ GfxAssociate(&view , vextra); view.Modes |= EXTEND_VSTRUCT; /* Initialize the MonitorSpec field of the ViewExtra */ if( monspec=OpenMonitor(NULL,modeID) ) vextra->Monitor=monspec; else fail("Could not get MonitorSpec\n"); } else fail("Could not get ViewExtra\n");