This commit is contained in:
Daveo 2001-02-20 15:57:03 +00:00
parent 9af1eb0ad5
commit 0a22ec4675
20 changed files with 348 additions and 122 deletions

View file

@ -230,6 +230,26 @@ int Ofs=(R->bottom+R->top)-1;
}
}
/*****************************************************************************/
void CMap::SetFlags(int Flags,int Mask,CRect *R)
{
if (!R)
{ // No rect, use full
R=new CRect(0,0,GetWidth(),GetHeight());
}
for (int Y=R->top; Y<R->bottom; Y++)
{
for (int X=R->left; X<R->right; X++)
{
sMapElem &ThisElem=Get(X,Y);
ThisElem.Flags&=Mask;
ThisElem.Flags|=Flags;
}
}
}
/*****************************************************************************/
void CMap::Paste(CMap &Src,CRect *R)
{