home *** CD-ROM | disk | FTP | other *** search
- show_video_adapter()
- {
- char* SubsystemName();
- char* DisplayName();
-
- static struct
- {
- char Subsystem;
- char Display;
- }
- VIDstruct[2];
-
- VideoID( VIDstruct );
-
- printf("\nYour graphics card(s):\n");
- printf(" %s (%s)\n",SubsystemName(VIDstruct[0].Subsystem),
- DisplayName(VIDstruct[0].Display) );
-
- if( VIDstruct[1].Subsystem )
- printf(" %s (%s)\n",SubsystemName(VIDstruct[1].Subsystem),
- DisplayName(VIDstruct[1].Display) );
-
- }
-
- char* SubsystemName( char a )
- {
- static char *IBMname[] = {"(none)",
- "MDA",
- "CGA",
- "EGA",
- "MCGA",
- "VGA"
- };
-
- static char *Hercname[] = {"Hercules",
- "Hercules+",
- "Hercules InColor",
- "Hercules compatible"
- };
-
- if( a & 0x80 )
- return( Hercname[a & 0x7f] );
- else
- return( IBMname[a] );
- }
-
- char* DisplayName( char d )
- {
- static char* name[] = {"(none)",
- "Monochrome",
- "Color;",
- "EGA Color",
- "PS/2 Monochrome",
- "PS/2 Color"
- };
-
- return( name[d] );
- }