Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>disp_getmode</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
disp_getmode

Usage

   #include <disp.h>

   int disp_getmode(void);

Description

   Returns the current video mode. This function can be used without opening
   the Display package.

Example 

   #include <disp.h>
   #include <stdlib.h>

   int main()
   {
       disp_open();
       disp_move(0,0);
       disp_eeop();
       disp_printf("Current video mode = %d\n",disp_getmode());
       disp_close();
       return EXIT_SUCCESS;

   }

Return Value

   disp_getmode returns the current video mode as follows:

       Mode    Description                     Availability
       ----    ---------------------------     --------------------------
        0       40 x 25 B/W Alpha              CGA/EGA/VGA
        1       40 x 25 color Alpha            CGA/EGA/VGA
        2       80 x 25 B/W Alpha              CGA/EGA/VGA
        3       80 x 25 color Alpha            CGA/EGA/VGA
        4      320 x 200 color graphics        CGA/EGA/VGA
        5      320 x 200 B/W graphics          CGA/EGA/VGA
        6      640 x 200 B/W graphics          CGA/EGA/VGA
        7       80 x 25 B/W Alpha              MDA /EGA/VGA (mono display)
       13      320 x 200 16 color graphics     EGA/VGA
       14      640 x 200 16 color graphics     EGA/VGA
       15      640 x 350 4 color graphics      EGA /VGA (mono display)
       16      640 x 350 16 color graphics     EGA/VGA


See Also

   Display package, disp_setmode



See Also: disp_setmode

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