Path: utzoo!attcan!uunet!maverick.ksu.ksu.edu!ux1.cso.uiuc.edu!brutus.cs.uiuc.edu!apple!mjohnson From: mjohnson@Apple.COM (Mark B. Johnson) Newsgroups: comp.sys.mac.programmer Subject: Re: New SetDepth call Keywords: System 6.0.5, Graphics Devices Manager Message-ID: <43382@apple.Apple.COM> Date: 27 Jul 90 15:57:33 GMT References: <1990Jul26.183633.10926@portia.Stanford.EDU> Organization: Apple Computer Inc, Cupertino, CA Lines: 34 Oops. We revised #276 in June because we had a few errors in the original Note. The inline traps had an error as well as the selector in HasDepth. Following is the correct syntax of these calls, as found in the latest version of #276: FUNCTION SetDepth(gd:GDHandle; newDepth,whichFlags, newFlags: Integer):Integer; INLINE $203C,$000A, $0013,$AAA2; { Move.L #$000A0013,D0 _PMgrDispatch } pascal short SetDepth(GDHandle gd, short newDepth,short whichFlags, short newFlags) = {0x203C, 0x000A, 0x0013, 0xAAA2}; FUNCTION HasDepth(gd:GDHandle; newDepth,whichFlags, newFlags: Integer):Integer; INLINE $203C,$000A $0014,$AAA2; { Move.L #$000A0014,D0 _PMgrDispatch } pascal short HasDepth(GDHandle gd, short newDepth,short whichFlags, short newFlags) = {0x203C,0x000A 0x0014,0xAAA2}; Sorry for any confusion our error caused. -- Mark B. Johnson AppleLink: mjohnson Developer Technical Support domain: mjohnson@Apple.com Apple Computer, Inc. UUCP: {amdahl,decwrl,sun,unisoft}!apple!mjohnson "You gave your life to become the person you are right now. Was it worth it?" - Richard Bach, _One_