Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!rutgers!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: <20882@cbmvax.commodore.com> Date: 23 Apr 91 15:42:19 GMT References: <1991Apr21.205546.3138@coral.bucknell.edu> Reply-To: spence@cbmvax.commodore.com (Spencer Shanson) Organization: Commodore, West Chester, PA Lines: 37 In article <1991Apr21.205546.3138@coral.bucknell.edu> hollnbgh@coral.bucknell.edu writes: > > I am programing a graphing utility in C, and would like to know >how to get the new ECS resolutions (640x480, 640x960, 1280x200, 1280x400). > > How do I actually open the screens with those resolutions, and how >can I make my program recognize whether or not there is an ECS Denise, >and AmigaDOS 2.0 present in the system. Last question first - all libraries in KickStart 2.0 have a version number of 36 or 37 (the switch to V37 was made at about the beginning of this year), so you should open a library, and check it's actual version number when it is opened. Now, assuming you are running under V36 or V37, you will be able to open the graphics.library, and check the GfxBase->ChipRevBits0 to see if GFXF_HR_DENISE is set. If it is, then the machine has an ECS Denise in it. However, 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. > >Thanks in advance. > >Dale Hollenbaugh >hollnbgh@coral.bucknell.edu -- --------------------------------------------------------------------------- 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'