minor fixes
This commit is contained in:
parent
ab9c650b0a
commit
c7d2295f4d
|
|
@ -20,13 +20,13 @@
|
||||||
|
|
||||||
#include "Component.h"
|
#include "Component.h"
|
||||||
|
|
||||||
#define KGE_DEFINE_COMPONENT_FLAG ( 0x01 << (__COUNTER__ % 32) )
|
#define KGE_DEFINE_COMPONENT_FLAG(OFFSET) ( 0x01 << (OFFSET % 32) )
|
||||||
|
|
||||||
namespace kiwano
|
namespace kiwano
|
||||||
{
|
{
|
||||||
const Int32 RenderComponent::flag = KGE_DEFINE_COMPONENT_FLAG;
|
const Int32 RenderComponent::flag = KGE_DEFINE_COMPONENT_FLAG(0);
|
||||||
const Int32 UpdateComponent::flag = KGE_DEFINE_COMPONENT_FLAG;
|
const Int32 UpdateComponent::flag = KGE_DEFINE_COMPONENT_FLAG(1);
|
||||||
const Int32 EventComponent::flag = KGE_DEFINE_COMPONENT_FLAG;
|
const Int32 EventComponent::flag = KGE_DEFINE_COMPONENT_FLAG(2);
|
||||||
|
|
||||||
ComponentBase::ComponentBase()
|
ComponentBase::ComponentBase()
|
||||||
: flag_(0)
|
: flag_(0)
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,4 @@ namespace kiwano
|
||||||
EventComponent();
|
EventComponent();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#undef KGE_DEFINE_COMPONENT_FLAG
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue