Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!bagate!cbmvax!spence From: spence@cbmvax.commodore.com (Spencer Shanson) Newsgroups: comp.sys.amiga.programmer Subject: Re: I need help with 2.0 screens Message-ID: <20885@cbmvax.commodore.com> Date: 23 Apr 91 17:29:37 GMT References: <1991Apr21.205546.3138@coral.bucknell.edu> <20882@cbmvax.commodore.com> Reply-To: spence@cbmvax.commodore.com (Spencer Shanson) Organization: Commodore, West Chester, PA Lines: 32 In article <20882@cbmvax.commodore.com> spence@cbmvax.commodore.com (Spencer Shanson) writes: >for opening your screens, you should not need to know that. All you need to do >is pass the required modeID to Intuition's OpenScreenTags(). If the mode is >not available (because there is no ECS Denise), then the OpenScreen() will >fail. > Furthermore, you can also find out from intuition why the screen did not open using the SA_ErrorCode tag: ULONG errorcode; mysc = OpenScreenTags(..., ..., SA_ErrorCode, &errorcode, ..., ); Then you can compare errorcode against several values in screens.h. In particular: OSERR_NOCHIPS - installed rev. of custom chips don't support this mode OSERR_NOMONITOR - User doesn't have the monitor needed for this mode. -- --------------------------------------------------------------------------- Spencer Shanson - Amiga Software Engineer | email: spence@commodore.COM | or uunet!cbmvax!spence All opinions expressed are my own, and do not | "You know my methods. Apply (necessarily) represent those of Commodore. | them" -- Sir Arthur Conan | Doyle - 'The Sign of Four'