LH> Does anyone know how to go about implementing high intensity background
The following program, when run with any argmument, will use the high
intense stuff. This was written as an MSC 6.0 16bit OS/2 program. It also
assumes your video card can handle "mode co80,34" (Which is most
of them).
--[show256.c]--
#define INCL_NOPM
#define INCL_VIO
#include
#include
static void checkmode(void)
{
VIOMODEINFO vi;
vi.cb = sizeof(vi);
VioGetMode(&vi, 0);
if(vi.row < 34){
vi.cb = 8;
vi.row = 34;
VioSetMode(&vi, 0);
}
}
static void setstate(void)
{
VIOINTENSITY vi;
vi.cb = sizeof(vi);
vi.type = 2;
//VioGetState(&vi, 0);
//vi.fs = !vi.fs;
vi.fs = 1;
VioSetState(&vi, 0);
}
void main(int argc, char **argv)
{
char tmp[10];
int row,col, row2;
int nrow = 8;
int colour = 0;
if(argc > 1){
checkmode();
setstate();
nrow = 16;
}
VioScrollDn(0,0, -1, -1, -1, " \x7", 0);
VioSetCurPos(17,0,0);
for(row=0; row * Origin: Sol 3 * Toronto * V.32 * (905)858-8488 (1:259/414)
SEEN-BY: 270/101 620/243 711/401 409 410 413 430 808 809 934 955 712/407 515
SEEN-BY: 712/517 628 713/888 800/1 7877/2809
@PATH: 259/414 400 99 250/99 3615/50 396/1 270/101 712/515 711/808 809 934
|