blm@6sigma.UUCP (Brian Matthews) (11/19/89)
I want to tie a vertical blanking task to the slot containing the main screen, so I need to pass the slot number to _SlotVInstall. Unfortunately, I can't figure out how to get the slot number of the main screen. Does anyone know how where I can get this information? -- Brian L. Matthews blm@6sigma.UUCP
oster@dewey.soe.berkeley.edu (David Phillip Oster) (11/20/89)
In article <334@6sigma.UUCP> blm@6sigma.UUCP (Brian Matthews) writes: >I can't figure out how to get the slot number of the main screen. Re-read the graphic device chapter of Inside Mac Vol 5. Them write code similar to: GDHandle curgd; if(world->hasColorQD){ for(curgd = GetDeviceList();curgd != NIL;curgd = GetNextDevice(curgd)){ if(TestDeviceAttribute(curgd, screenDevice) && TestDeviceAttribute(curgd, screenActive) && TestDeviceAttribute(curgd, mainScreen)){ return curgd; /* found it */ } } } } } --- According to the Constitution, the Constitution is unconstitutional: --- David Phillip Oster --U.S.Constitution I.10.1: "No State shall Arpa: oster@dewey.soe.berkeley.edu --enter into any treaty, alliance, or Uucp: {uwvax,decvax}!ucbvax!oster%dewey.soe.berkeley.edu -- confederation..."