int PDC_get_font(void) /***********************************************************************/ { #ifdef EMXVIDEO int retval=0; #else VIOMODEINFO modeInfo={0}; #endif #ifdef PDCDEBUG if (trace_on) PDC_debug("PDC_get_font() - called\n"); #endif #ifdef EMXVIDEO retval = v_hardware(); return (retval == V_MONOCHROME) ? 14 : (retval == V_COLOR_8) ? 8 : 12; #else modeInfo.cb = sizeof(modeInfo); /* set most parameters of modeInfo */ VioGetMode(&modeInfo, 0); return ( modeInfo.vres / modeInfo.row); #endif }
int PDC_query_adapter_type( VIOCONFIGINFO *configinfo ) #endif /***********************************************************************/ { #ifndef EMXVIDEO VIOCONFIGINFO aconfiginfo; #else int retval = _NONE; #endif #ifdef PDCDEBUG if (trace_on) PDC_debug("PDC_query_adapter_type() - called\n"); #endif #ifdef EMXVIDEO if (v_hardware() == V_MONOCHROME) retval = _UNIX_MONO; else retval = _UNIX_COLOR; return(retval); #else VioGetConfig( 0, &aconfiginfo, 0 ); *configinfo = aconfiginfo; return(OK); #endif }
static int vm_iscolorcard(void) { int hw = v_hardware(); return hw == V_COLOR_8 || hw == V_COLOR_12 ? 1 : 0; }