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 - scrndriver() return current screen driver identifier http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 scrndriver()        Return current screen driver identifier
------------------------------------------------------------------------------
 Declaration
   screen.hdr

 Syntax
   func uint scrndriver extern

 Arguments
   None.

 Return
   A numeric identifying the current screen driver, as listed in the
   table below.

   Id | Screen driver
   ---+--------------
   0  | scrndirect()
   1  | scrnbios()
   2  | scrndos()

 Description
   This function returns the identifier of the current active screen driver.

 Example
   #define EXAMPLE_SCREEN
   #include example.hdr

   proc Test_scrndriver
   ? scrndriver()          // 0 (default)
   wait
   scrnbios()
   ? scrndriver()          // 1
   wait
   scrndos()
   ? scrndriver()          // 2
   wait
   scrndirect()
   ? scrndriver()          // 0
   wait
   endproc

   proc main
   Test_scrndriver()
   endproc

See Also: scrnbios() scrndirect() scrndos()

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