/* Display info on current OS/2 video mode. */ #include "eel.h" #include "lowlevel.h" struct ModeData _video_mode_data; command show_video_mode() { _video_mode_data.length = sizeof(_video_mode_data); vid_xxx_call("VIOGETMODE", &_video_mode_data); say("%dx%d mode, resolution %dx%d, %d color bits, type code 0x%x", _video_mode_data.col, _video_mode_data.row, _video_mode_data.hres, _video_mode_data.vres, _video_mode_data.color, _video_mode_data.type); }