🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #12391

Re: How to check for PAL systems?

#12391
From: Adam Levin CATS
Date: Wed, 26 Apr 1989 18:52
22 lines
1084 bytes
The NTSC clock constant is 3.579545.
 The PAL clock constant is 3.546895.


To determine video format (PAL/NTSC) at runtime:

#include <graphics/gfxbase.h>

struct GfxBase *GfxBase;

GfxBase = (struct GfxBase *) OpenLibrary("graphics.library", 0L);
if ( GfxBase == NULL) /*  Couldn't open library; clean up and exit.  */

if (GfxBase->DisplayFlags & PAL) /*  PAL machine.  */
else /*  NTSC machine.  */


-- 
     Adam Keith Levin  --  CATS   Commodore-Amiga Technical Support
     1200 Wilson Drive / West Chester, PA  19380     (215) 431-9180
     BIX: aklevin        UUCP: ...{amiga|rutgers|uunet}!cbmvax!adam
Technical Details
Message-ID: <6693@cbmvax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!oliveb!amiga!cbmvax!adam
References: <17584@cup.portal.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!oliveb!amiga!cbmvax!adam
From: adam@cbmvax.UUCP (Adam Levin CATS)
Newsgroups: comp.sys.amiga.tech
Subject: Re: How to check for PAL systems?
Message-ID: <6693@cbmvax.UUCP>
Date: 26 Apr 89 18:52:07 GMT
References: <17584@cup.portal.com>
Reply-To: adam@cbmvax.UUCP (Adam Levin CATS)
Organization: Commodore Technology, West Chester, PA
Lines: 22