home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1996 February
/
PCWK0296.iso
/
sharewar
/
dos
/
program
/
gs300sr1
/
gs300sr1.exe
/
GDEVEVGA.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-07-27
|
2KB
|
54 lines
/* Copyright (C) 1993 Aladdin Enterprises. All rights reserved.
This file is part of Aladdin Ghostscript.
Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
or distributor accepts any responsibility for the consequences of using it,
or for whether it serves any particular purpose or works at all, unless he
or she says so in writing. Refer to the Aladdin Ghostscript Free Public
License (the "License") for full details.
Every copy of Aladdin Ghostscript must include a copy of the License,
normally in a plain ASCII text file named PUBLIC. The License grants you
the right to copy, modify and redistribute Aladdin Ghostscript, but only
under certain conditions described in the License. Among other things, the
License requires that the copyright notice and this notice be preserved on
all copies.
*/
/* gdevpcfb.c */
/* IBM PC EGA and VGA display drivers for Ghostscript */
/* This is fundamentally an EGA driver with some parameters */
/* that allow it to drive larger displays. */
#include "memory_.h"
#include "gx.h"
#include "gserrors.h"
#include "gxdevice.h"
#include "gdevpcfb.h"
/* ------ Internal routines ------ */
/* We can't catch signals.... */
void
ega_set_signals(gx_device *dev)
{
}
/* Read the device mode */
int
ega_get_mode(void)
{ registers regs;
regs.h.ah = 0xf;
int86(0x10, ®s, ®s);
return regs.h.al;
}
/* Set the device mode */
void
ega_set_mode(int mode)
{ registers regs;
regs.h.ah = 0;
regs.h.al = mode;
int86(0x10, ®s, ®s);
}