///////////////////////////////////////////////////////////////////////////// // // This file is Copyright 1992,1993 by Warwick W. Allison. // This file is part of the gem++ library. // You are free to copy and modify these sources, provided you acknowledge // the origin by retaining this notice, and adhere to the conditions // described in the file COPYING.LIB. // ///////////////////////////////////////////////////////////////////////////// #include "vdi.h" #include #include #include #include #define USEME // The following is an interesting hack. It works, but it's NOT NICE! //#define USEME if (this!=CurrentVDI) BeCurrent() //#include // My first attempt to make TRULY virtual devices. // When I get info on GDOS's MEMORY.SYS driver, I hope to use that. // //static VDI* CurrentVDI=0; //void VDI::BeCurrent() //{ // CurrentVDI=this; // if (mfdb.fd_addr) Setscreen(mfdb.fd_addr,-1,-1); //} static const NWI=11; static const NWO=64; static int StdWorkIn[]={1,1,1,1,1,1,1,1,1,1,2}; VDI::VDI() : WorkIn(new int[NWI]), WorkOut(new int[NWO]), ExtWorkOut(new int[NWO]) { int j; for (j=0; j