Jspice3
loadfont.c
Go to the documentation of this file.
1 /*************************************************************************
2  MFB graphics and miscellaneous library for protected mode MSDOS.
3  Copyright (c) Stephen R. Whiteley 1992
4  Author: Stephen R. Whiteley
5  *************************************************************************/
6 
7 #include <dos.h>
8 
9 
10 void
11 load_font(scanheight)
12 
13 /* load nondefault internal screen font */
14 int scanheight;
15 {
16  union REGS r;
17  int mode;
18 
19  if (scanheight == 15) /* default 8X16 */ return;
20  if (scanheight == 13) /* 8X14 */ mode = 0x11;
21  else if (scanheight == 7) /* 8X8 */ mode = 0x12;
22  else return;
23  mode |= 0x1100;
24  r.x.ax = mode;
25  r.x.bx = 0;
26  int86(0x10,&r,&r);
27  /* set modified printscreen for other than 25 rows */
28  r.x.ax = 0x1200;
29  r.x.bx = 0x20;
30  int86(0x10,&r,&r);
31 }
void load_font(int scanheight)
Definition: loadfont.c:11