/* * scr_gfx.mda: * IBM PC screen handling, monochrome display * * Copyright (c) 1989 University of Toronto. All rights reserved. * Anyone may use or copy this software, except that it may not be * sold for profit, that this copyright notice remain intact, and that * credit is given where it is due. The University of Toronto and the * author make no warranty and accept no liability for this software. */ static char GFXid[] = "$Header: scr_gfx.mda,v 1.1 89/04/13 16:12:13 pkern Exp $"; /* video mode parameters */ unsigned int txt_mode=0x07, txt_addr=0xb000; unsigned int avm_mode=0, avm_addr=0; unsigned int gfx_mode=0, gfx_addr=0; unsigned int gfx_xres=2, gfx_yres=2, gfx_numclr=1; /* * Monochrome display graphics nitty-gritty: * basically nothing done here, mostly dummy routines */ init_gfx() { extern uchar interlace, gcolour; extern int gmax_x, gmax_y, gmax_clr; gmax_x = gfx_xres = 2; gmax_y = gfx_yres = 2; gmax_clr = gfx_numclr = 1; gcolour = gmax_clr-1; } /* gfx_erase -- clear or hide the graphics screen */ gfx_erase() { /* nothing needed */ } gfx_colour(n) uchar n; { return(1); } /* gpeek -- get a pixel's colour */ gpeek(x, y) int x, y; { return(1); } /* boink -- light a pixel */ boink(x,y,c) int x, y; uchar c; { /* zilch */ } /* * hline -- only does horizontal lines (union regulations :-) * (called from bline(), should be optimized for speed). */ hline(x,y,n,c) int x; register int y,n; uchar c; { /* zilch */ } /* * vline -- vertical lines only * (again, called from bline(), should be optimized for speed). */ vline(x,y,n,c) int y; register int x,n; uchar c; { /* zilch */ } /* * xrun -- optimize search for runs to colour c in x direction * (called from dofill(), should be quicker that gpeek()-ing each pixel) */ xrun(x, y, c, dir) int x, y, dir; uchar c; { return(x); }