🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #1287

Re: Minimizing damage to a canvas

#1287
From: Mark Linton
Date: Wed, 18 Nov 1992 19:49
19 lines
1548 bytes
In article <BxvJ3n.AI3@world.std.com>, grier@world.std.com (The Political Crony) writes:
|> I'm involved in a monitoring application where a number of meter-style
|> display glyphs will be updated from a comm channel coming in through
|> some Dispatch methods. All the updating per se seems to be fine. My
|> question pertains to update of the various displays as required.
|> 
|> It is possible for more than one meter to be updated at a time.  The
|> natural mechanism for forcing a display update would be to put a patch
|> around the meter and call the redraw() method. However, if more than
|> one such redraw() occurs on spots widely separated on the canvas, the
|> damage area will be the rectangle that contains all the damages,
|> causing unchanged areas to be redisplayed.
|> 
|> Is there some way to avoid the extra drawing without kludging in the
|> checking?

You can call redraw on the patch and then call repair on the window
to force an update.  This will cause an extra draw traversal, but less
actual drawing.
Technical Details
Message-ID: <1ee6p7INN10b@fido.asd.sgi.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!sgigate!sgi!fido!marktwain.rad.sgi.com!linton
References: <BxvJ3n.AI3@world.std.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!sgigate!sgi!fido!marktwain.rad.sgi.com!linton
From: linton@marktwain.rad.sgi.com (Mark Linton)
Newsgroups: comp.windows.interviews
Subject: Re: Minimizing damage to a canvas
Date: 18 Nov 1992 19:49:59 GMT
Organization: sgi
Lines: 19
Distribution: world
Message-ID: <1ee6p7INN10b@fido.asd.sgi.com>
References: <BxvJ3n.AI3@world.std.com>
Reply-To: linton@marktwain.rad.sgi.com (Mark Linton)
NNTP-Posting-Host: marktwain.rad.sgi.com