Hi,
The information on page 47 seems to be correct, at least for modes
0,8,16,32,33. I can't check the others (does aurora lcd mode even exist
other than in theory?).
I find the disp_type function to be quite confusing, as it mixes the
information on colour depth with information on what kind of display (or
even machine) is used : Mode 0,1 and 2 below basically show the same
colour depth and a program is probably more interested in that and not
so much in the hardware used to generate it.
This is probably due to the way SMSQE has grown and thus the need to
keep backward compatibility.
Most programs probably only need to know the colour depth and the screen
size.
It would thus probably be better to split disp_type up between a
function that would return the colour depth and a function telling you
what kind of display, hardware-wise is used.
Wolfgang
On 11/11/2017 17:58, Giorgio Garabello via Ql-Users wrote:
From SMSQE Manual...
Page 47
DISP_TYPE
The DISP_TYPE function is used to find the type of display. For standard QL
style displays in MODE 4 (any resolution) DISP_TYPE returns 0. The value
returned on other display systems may vary according to the hardware and
colour depth. In general, on SMSQ/E versions supporting higher colour
modes, and on Atari emulator cards, the following values may be returned.
0 – QL style display (MODE 4)
1 - Extended mode 4 emulator (standard and extended display sizes) on Atari.
2 - QVME mode 4 emulator on Atari.
3 - Aurora LCD
4 - Monochrome display on Atari.
5 - Aurora QL mode
8 – QL MODE 8 display
16 – 8-bit (256 colour) mode
32 – 16-bit colour mode on QPC, QXL and SMSQmulator
*33 – 16-bit colour mode on Q40 and Q60*
64 – 24-bit colour mode (no hardware supports this at the time of writing)
Page 95
DISP_TYPE
The DISP_TYPE function is used to find the type of display. For the Q40,
there are two values that may be returned.
0 Original ST QL emulator (this value is returned on QL based hardware).
*1 16 bit colour mode.*
Which of the two is the right one?
_______________________________________________
QL-Users Mailing List
_______________________________________________
QL-Users Mailing List