Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - setmaxrowcol() set screen sizes http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 setmaxrowcol()      Set screen sizes
------------------------------------------------------------------------------
 Declaration
   screen.hdr

 Syntax
   proc setmaxrowcol extern
   param value uint uRow, ;
         value uint uCol

 Arguments
   uRow is the maximum number of displayed screen rows.
   uCol is the maximum number of displayed screen columns.

 Return
   None.

 Description
   This procedure is used to define screen sizes different from the default
   (25 rows, 80 columns). It sets the system variables __max_row and
   __max_col to the maximum row, and column numbers (24, and 79 by default)
   accordingly.

   These values are used by internal calculations of cursor positions, line
   wraps, screen scrolls, screen saves, and restores, etc.

   The setmaxrowcol() function does not only assign new values to the
   system variables __max_row and __max_col, but it also adjusts
   other internal system variables which determine the number of bytes
   in a screen. Therefore, do not directly assign values to __max_row and
   __max_col.

 Example
   #define EXAMPLE_SCREEN
   #include example.hdr

   proc Test_setmaxrowcol
   ? __max_row, getmaxrow()
   ? __max_col, getmaxcol()
   ?
   // Here detect video, and if VESA is present, activate the VESA mode
   // 010Ah (43 rows, 132 columns), and then change the screen dimensions
   setmaxrowcol( 42, 131 )
   ? __max_row, getmaxrow()
   ? __max_col, getmaxcol()
   ?
   // Here change back to normal screen mode
   detectmaxrowcol()
   ? __max_row, getmaxrow()
   ? __max_col, getmaxcol()
   endproc

   proc main
   Test_setmaxrowcol()
   endproc

See Also: detectmaxrowcol()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson