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_setmode</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
disp_setmode

Usage

   #include <disp.h>
   void disp_setmode(unsigned char mode);

Description

   Sets the video mode. If the current video mode is not required, a call to
   this function must be made before the call to disp_open. See disp_getmode
   for details of the available modes.

Example 

   #include <stdio.h>

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

   int main()
   {
       if (disp_getmode() == 7)
           printf("Can't change mode on a mono display\n");
       else {
           disp_setmode(1);        /* 40x25 color */
           disp_open();
           disp_printf("This should be in 40 column color.\n");
           disp_printf("Press a key to exit\n");
           getch();
           disp_close();
       }
       return EXIT_SUCCESS;
   }

See Also


   Display package, disp_getmode, disp_set43, disp_reset43



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