Adrian,
there is (I think) not a single function that allows to retrieve this 
information, but some strong hints from the system that GD2 is there:

- Use SD.EXTOP and check offset $64 of the channel table - this gives you the 
number of bytes per scanline.
- use MT.DMODE to retrieve the screen mode
Divide scan line length*8 by the number of colour bits for the detected mode, 
should give you a hint on screen width when you cannot detect PE (The screen 
height is, I think not easy to detect when no PE is present)

If you can detect PE, use iop.flim to get width and height from the PE directly.
The only system with resolutions <>512x256 and no PE is, to my knowledge, uQLX.

Dilwyn's page has the wonderful display_cde toolkit that incorporates this (and 
a few other display related calls into a wonderful S*Basic extension.

Cheers,
Tobias

-----Original-Nachricht-----
Subject: [Ql-Users] Help: Function to tell whether display is better than QL 
standard
Date: Mon, 28 Feb 2011 15:01:55 +0100
From: "Adrian Ives" <adr...@acanthis.co.uk>
To: <ql-us...@q-v-d.com>

I know I've seen this somewhere but, as usual, when you really want
something it refuses to be found!

 

I'm looking for a function to use in S*BASIC that will tell me if the
display driver is capable of providing resolutions greater than the QL's
mode 4 & 8 defaults - it would be enough just to know if the display driver
is GD2 or not.  It has to run on any QL system, including clones and
emulators.  Can anyone help?

 

Thanks,

 

 

Adrian

_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm



_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to