From: DavMac AT iname DOT com (Davin McCall) Newsgroups: comp.os.msdos.djgpp Subject: Re: Help needed! windowing system Date: Wed, 14 Apr 1999 14:18:53 GMT Organization: Monash Uni Lines: 23 Distribution: world Message-ID: <3714a28c.13813545@newsserver.cc.monash.edu.au> References: <3713D8AB DOT D1FA1602 AT ort DOT org DOT il> NNTP-Posting-Host: damcc5.halls.monash.edu.au X-Trace: towncrier.cc.monash.edu.au 924099516 18949 130.194.198.138 (14 Apr 1999 14:18:36 GMT) X-Complaints-To: abuse AT monash DOT edu DOT au NNTP-Posting-Date: 14 Apr 1999 14:18:36 GMT X-Newsreader: Forte Free Agent 1.1/32.230 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Clipping? One approach: For each window to be drawn (start from bottommost): - create a (resizeable) array of rectangles. Start with one rectangel in the array, which contains the window (ie, same size & position) -for each higher window and each rectangle in the array, check for overlap, and modify the array of rectangles so that it contains only parts not obscured by the higher windows Your rectangle and higher window can: - completely overlap - overlap corners - requires your rectangle to become two - overlap sides - requires the size of your rectangle to be reduced On Wed, 14 Apr 1999 01:52:11 +0200, Jonathan Gross wrote: >I'm trying to build a graphic windowing system for dos. >I need a way to draw all the windows fast, without drawing all of the >windows from bottom to top. > thanx. >