Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_getmode() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_GETMODE()

 DESCRIPTION

 C_GETMODE() returns the current video display mode.  (Refer to
 Appendix F for a list of video display modes.)

 SYNTAX

 C_GETMODE()

 PARAMETERS

 There are no parameters.

 RETURNS

 C_GETMODE() returns the numeric video display mode (see Appendix F).

 EXAMPLE

 m_vmode = c_getmode() && Save current video mode

 && Test for VGA adaptor.  If VGA adaptor, set video mode to 19
 && (640x480), else set video mode to 4 (320x200)

 if c_getvideo() = 3
   c_setmode(19)
 else
   c_setmode(4)
 endif
 ...
 ...        && Do graphics routine
 ...
 c_setmode(m_vmode)  && Set video mode back to previous mode


See Also: C_SETMODE() C_GETVIDEO() C_PIXWRITE() C_PIXREAD()

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