예제 #1
0
void IconDes::PenSet(Point p, dword flags)
{
	return;
	p -= (pen - 1) / 2;
	Over(CurrentImage(), p, IconDesImg::Get(IconDesImg::I_pen1 + minmax(pen - 1, 0, 5)),
	     Size(pen, pen));
	RefreshPixel(p, pen, pen);
}
예제 #2
0
BOOL CTimeout::TimeoutReset( DWORD dwCurr )
{
	DWORD dwTimeout	= Over( dwCurr );
	if( dwTimeout > 0 )
	{
		Reset( dwCurr, dwTimeout );
		return TRUE; 
	}
	return FALSE;
}
예제 #3
0
void InterpolateImage(Image& img, const Rect& _rc)
{
    Rect rc = _rc & img.GetSize();
    Image m = Crop(img, rc);
    TimeStop tm;
    Image imp = CreateImage(rc.GetSize(), Null);
    Over(imp, Point(0, 0), m, m.GetSize());
    Progress pi("Interpolating...");
    for(int qq = 0; qq < 2000; qq++) {
        InterpolateFilter f;
        f.todo = 0;
        imp = Filter(imp, f);
        Over(imp, Point(0, 0), m, m.GetSize());
        if(f.todo == 0)
            break;
        if(pi.SetCanceled(qq, 2000))
            break;
    }
    Copy(img, rc.TopLeft(), imp, imp.GetSize());
}
예제 #4
0
Image IconDes::MakeIconDesCursor(const Image& arrow, const Image& cmask)
{
	RGBA c = CurrentColor();
	c.a = 255;
	Image ucmask = Unmultiply(cmask);
	ImageBuffer ib(ucmask.GetSize());
	const RGBA *m = ~ucmask;
	RGBA *t = ~ib;
	RGBA *e = ib.End();
	while(t < e) {
		*t = c;
		t->a = m->a;
		m++;
		t++;
	}
	Image cm(ib);
	Image r = arrow;
	Over(r, Point(0, 0), Premultiply(cm), r.GetSize());
	return r;
}
예제 #5
0
void CSuperMove::Update()
{
	if (!gMap)
	{
		return /*Clear()*/;
	}

	if (m_bHungUp)
	{
		if (!gHero->IsMoving())
		{
			m_bHungUp = false;
			StartMove(m_pPath, m_nErrorDistance);
		}

		return;
	}

	if (!gHero->IsTransfering() && !m_bOver && !m_bPause)
	{
		if ((*m_itCurAction)->CheckFailed())
		{
			return Clear();
		}

		if ((*m_itCurAction)->CheckDone())
		{
			if (!HasNextAction()) 
			{
				Over();
			}
			else if (nFrameCounter++ == 5)
			{
				NextAction();
				nFrameCounter = 0;
			}
		}
	}
}
예제 #6
0
파일: mouse.cpp 프로젝트: Alriightyman/RTS
bool MOUSE::PressInRect(RECT dest)
{
	return ClickLeft() && Over(dest);
}
예제 #7
0
파일: SImageDraw.cpp 프로젝트: koz4k/soccer
void SImageDraw1::PutImage(Point p, const Image& m, const Rect& src)
{
	Over(ib, p, m, src);
}
예제 #8
0
Image OverLtRed(const Image& m)
{
	Image red = CreateImage(m.GetSize(), Blend(LtRed, SColorPaper));
	Over(red, Point(0, 0), m, m.GetSize());
	return red;
}
예제 #9
0
void CTimer::operator()( double fInterval )
{
	Set( (float)fInterval );	while( !Over() );
}
예제 #10
0
void CTimer::operator()( void )
{
	while( !Over() );
}
예제 #11
0
파일: DrawFunctions.C 프로젝트: GLP90/Xbb
bool OverAll(float phi, float eta) {
  return (Over(phi, eta) || OverQCD(phi, eta));
}
예제 #12
0
Image sImageAdd::Make() const
{
	Image dest = i1;
	Over(dest, Point(0, 0), i2, i2.GetSize());
	return dest;
}