http://www.ousob.com --- Legacy Redefined #include <graph.h> #include <extend50.h> CLIPPER b_vmode() { int ret_val; struct videoconfig config; _getvideoconfig(&config); switch(config.adapter){ case 0x0001 : ret_val = 1; break; case 0x0002 : ret_val = 2; break; case 0x0004 : ret_val = 3; break; case 0x0008 : ret_val = 4; break; case 0x0010 : ret_val = 5; break; default : ret_val = -1; break; } _retni(ret_val); }