home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PROG_C
/
WINCPP.ZIP
/
DIRVIDEO.CPP
next >
Wrap
C/C++ Source or Header
|
1994-01-22
|
491b
|
30 lines
#include "window.h"
void Window::VPut(int row, int col, uchar attr, uchar c)
{
Video[row*ScreenCols+col] = (short)(attr<<8|c);
}
void Window::VPut(int row, int col, short word)
{
Video[row*ScreenCols+col] = word;
}
void Window::VGet(int row, int col, uchar &attr, uchar &c)
{
short word;
word = Video[row*ScreenCols+col];
attr = (uchar)(word>>8u);
c = (word & 0xff);
}
short Window::VGet(int row, int col)
{
return (Video[row*ScreenCols+col]);
}