•  Back 
  •  Screen functions 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help page 
  •  Show info about hypertext 
  •  View a new file 
Topic       : TOS - The Operating System
Author      : 
Version     : tos.hyp (December 19, 2008)
Subject     : Programmieren/Atari
Nodes       : 3010
Index Size  : 93790
HCP-Version : 5
Compiled on : Atari
@charset    : atarist
@lang       : 
@default    : Title
@help       : 
@options    : +g -i -s +x +zz -t4
@width      : 70
View Ref-File4.5.10  Getrez                                                     TOS

 Name:         »get resolution« - Return current screen resolution 
               code.

 Opcode:       4

 Syntax:       int16_t Getrez( void );

 Description:  The XBIOS routine Getrez obtains the current resolution 
               of the screen.

 Return value: The function returns the following values:

                Value  Meaning 
                  0     320*200 (4 planes) 
                  1     640*200 (2 planes) 
                  2     640*400 (one plane) 
                  4     640*480 (4 planes, TT only) 
                  6    1280*960 (one plane, TT only) 
                  7     320*480 (8 planes, TT only) 

               All other values are reserved for future extensions.

               Note: For the sake of clean programming this function 
               should not be used, as it is very dependent on the 
               hardware; particularly when graphics cards are in use, 
               it has practically no meaning. Instead, the screen 
               resolution should be obtained via the VDI function 
               (v_opnvwk).

 Availability: All TOS versions.

 Group:        Screen functions

 See also:     Binding   v_opnvwk