🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ont.micro.mac
Article #400

bug in quickdraw

#400
From: info-mac
Date: Fri, 06 Jul 1984 16:28
40 lines
1585 bytes
Date: Thu 5 Jul 84 13:20:31-EDT
From: Martin J Mahoney <uw-beaver!UI.MJM%CU20B@COLUMBIA-20.ARPA>
Subject: bug in quickdraw
To: info-mac@SUMEX-AIM.ARPA



While using the Mac yesterday i discovered a bug in Quickdraw. 
I tried to draw two rectangles such that they shared a common side,
however, one was drawn using the FRAMERECT quickdraw routine and the
other used the LINETO quickdraw routines.  When the two rectangles
were drawn the one draw using the LINETO calls had its vertical sides
slightly longer than the one drawn with the FRAMERECT call, when the
sides should have all been the same length.

Here is the code to reproduce the problem in both MS-basic and Forth:

	MS-BASIC

10 dim rect%(3)
20 rect%(0)=50:rect%(1)=50:rect%(2)=100:rect%(3)=100
30 call FRAMERECT(varptr(rect%(0)))
40 call moveto(0,50):call lineto(0,100)
50 call lineto(50,100):call lineto(50,50):call lineto(0,50)
60 end


	FORTH

gint
50 50 100 100 frame rectangle
0 50 0 100 vector
0 100 50 100 vector
50 100 50 50 vector
50 50 0 50 vector



Martin J. Mahoney
-------
Technical Details
Message-ID: <4784@utcsrgv.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utcsrgv!info-mac

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site utcsrgv.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utcsrgv!info-mac
From: info-mac@utcsrgv.UUCP (info-mac)
Newsgroups: ont.micro.mac
Subject: bug in quickdraw
Message-ID: <4784@utcsrgv.UUCP>
Date: Fri, 6-Jul-84 12:28:54 EDT
Article-I.D.: utcsrgv.4784
Posted: Fri Jul  6 12:28:54 1984
Date-Received: Fri, 6-Jul-84 13:22:12 EDT
Sender: peterr@utcsrgv.UUCP
Organization: CSRI, University of Toronto
Lines: 42