home *** CD-ROM | disk | FTP | other *** search
- //=====================================================================
- //
- // initvid.cpp
- //
- // initialize the video environment for TurboVision
- //
- // Protected Mode version
- //
- // Copyright (c) 1994, Kevin Morgan, All rights reserved.
- //
- //=====================================================================
- #include <stdio.h>
- #include <dos.h>
- #include <setjmp.h>
-
- #include "dpmish.h"
-
- extern "C" {
- void _initVideo(void);
- }
-
-
- extern unsigned monoSeg;
- extern unsigned colrSeg;
- extern unsigned biosSeg;
-
- //=======================================================================
- // _startup
- // get the program running
- //=======================================================================
-
- void _initVideo(void)
- {
- // predefine a few selectors we need
-
- colrSeg = FP_SEG( Dpmi.makeDescriptor(0xb800) );
- monoSeg = FP_SEG( Dpmi.makeDescriptor(0xb000) );
- biosSeg = FP_SEG( Dpmi.makeDescriptor(0x0040) );
- }
-
- #pragma startup _initVideo 1