home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
POINT Software Programming
/
PPROG1.ISO
/
c
/
fli106c
/
bllineat.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1992-03-11
|
1KB
|
56 lines
//
// The Fusion Library Interface for DOS
// Version 1.06c
// Copyright (C) 1990, 1991, 1992
// Software Dimensions
//
// BlazeClass
//
#ifndef __BCPLUSPLUS__
#pragma inline
#endif
#include "fli.h"
#ifdef __BCPLUSPLUS__
#pragma hdrstop
#endif
#define I asm
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
//
// LineAttribute()
//
// Changes the attributes of a line to a specified color
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
void BlazeClass::LineAttribute(int X,int Y,int Width,int Color)
{
if (!Width || X>=WinWide || Y>=WinHigh)
return;
int ScreenWidth = BlazeClass::QuickWidth;
int Locator = ((WinY+Y)*ScreenWidth)+((WinX+X)*2);
if (X+Width>=WinWide)
Width=WinWide-X;
void far *OUTPUT=BlazeClass::OUTPUT;
I les di,OUTPUT
I add di,Locator
I inc di
I mov cx,Width
I mov al,byte ptr Color
I cld
looped:
I stosb
I inc di
I loop looped
}