Path: utzoo!censor!geac!torsqnt!jarvis.csri.toronto.edu!mailrus!wuarchive!cs.utexas.edu!sun-barr!decwrl!shelby!med!hanauma!rick From: rick@hanauma (Richard Ottolini) Newsgroups: comp.windows.x Subject: XView paints twice at start Message-ID: <652@med.Stanford.EDU> Date: 11 Mar 90 18:03:04 GMT Sender: news@med.stanford.edu (USENET News System) Reply-To: rick@hanauma (Richard Ottolini) Organization: Stanford University, Dept. of Geophysics Lines: 18 The following code fragment issues two repaint requests at initialization. I'd prefer only one, but can figure out to obtain such behavior. The first repaint request is the up right 64 x 64 of the window and the second is the whole window. No window size change occurs. canvas = xv_create (frame, CANVAS, CANVAS_REPAINT_PROC, MyDraw, WIN_DYNAMIC_VISUAL, TRUE, WIN_CMS_NAME, "grayscale", WIN_CMS_DATA, &cmsdata, 0); xv_set (canvas,CANVAS_FIXED_IMAGE,FALSE,0); window_fit (frame); If CANVAS_FIXED_IMAGE is set in the first call, it doesn't take hold. I set CANVAS_FIXED_IMAGE to force a repaint when resizing a window.