Пример #1
0
void aRect::render()
{
	int32_t color = getColor();
	if(isShowing())
		//bOutline ? drawEmptyRect( getGUI_RECT(), color, color ) : drawRect( getGUI_RECT(), color );
		bOutline ? drawEmptyRect(getGlobalGUI_RECT(), color, color) : drawRect(getGlobalGUI_RECT(), color);
}
Пример #2
0
void aRect::render(int32_t x, int32_t y)
{
	// RECT tmpRect = getGUI_RECT();
	RECT tmpRect = getGlobalGUI_RECT();
	tmpRect.left += x;
	tmpRect.right += x;
	tmpRect.top += y;
	tmpRect.bottom += y;
	int32_t color = getColor();
	bOutline ? drawEmptyRect(tmpRect, color, color) : drawRect(tmpRect, color);
}