๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #19893

Re: C problem

#19893
From: Clith de T'nir a.k.a. Reid Ellis
Date: Mon, 05 Oct 1987 23:39
30 lines
1692 bytes
In article <2120@sfsup.UUCP> shap@sfsup.UUCP (J.S.Shapiro) writes:

	Now that we have different screen sizes, it no longer suffices to
	hardwire things like the screen width. A DA is not really allowed to
	call InitGraf. What can I do (assembler is ok) to find out the values
	of the screenBits rect?

DA's (and any non-'CODE' code, I think) are not allowed to access
Quickdraw's global variables. (thePort etc, or qd.* if you are using
MPW or Aztec C) (I didn't know Aztec used 'qd.' like MPW.  Is this
new?) If you consider multiple screen environments, there are two
possible things you want.
a) just "this" screen's rectangle
b) the bounding rectangle for all screens.

You can use 'GetWMGrPort(&grafptrVar);' which gives you
grafptrVar->portRect, which is a Rect that encloses the entire
multi-screen display space.

And I'm not sure, but I *think* that grafptrVar->portBits.bounds is be
the rectangle for just the "this" screen.

	This may be a MANX bug.

Nope, it's the way DAs work.

	Jds aondimo

---
Reid Ellis	mnetor!unicus!rae@seismo.css.gov
Technical Details
Message-ID: <1049@unicus.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!yetti!unicus!rae
References: <2120@sfsup.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!yetti!unicus!rae
From: rae@unicus.UUCP (Clith de T'nir a.k.a. Reid Ellis)
Newsgroups: comp.sys.mac
Subject: Re: C problem
Message-ID: <1049@unicus.UUCP>
Date: Mon, 5-Oct-87 19:39:31 EDT
Article-I.D.: unicus.1049
Posted: Mon Oct  5 19:39:31 1987
Date-Received: Sat, 10-Oct-87 03:11:27 EDT
References: <2120@sfsup.UUCP>
Reply-To: rae@unicus.UUCP (Clith de T'nir a.k.a. Reid Ellis)
Organization: Unicus Software Inc.
Lines: 30
Keywords: getport getwmgrport
Summary: use GetPort(ยคt_port) or GetWMGrPort(&wmgr_port)