cmGr.h/c Fixed logic bug in cmGrPExtIsNotNullOrEmpty()
This commit is contained in:
parent
2b6a272d55
commit
6602a6277a
12
cmGr.c
12
cmGr.c
@ -27,13 +27,13 @@ enum
|
|||||||
|
|
||||||
typedef struct cmGrObj_str
|
typedef struct cmGrObj_str
|
||||||
{
|
{
|
||||||
unsigned id; //
|
unsigned id; //
|
||||||
unsigned cfgFlags; //
|
unsigned cfgFlags; //
|
||||||
unsigned stateFlags; //
|
unsigned stateFlags; //
|
||||||
cmGrObjFunc_t f; //
|
cmGrObjFunc_t f; //
|
||||||
cmGrVExt_t wext; // world coord's contained within this object (children of this object are contained by these extents)
|
cmGrVExt_t wext; // world coord's contained within this object (children of this object are contained by these extents)
|
||||||
unsigned wlimitFlags; // kLeftGrFl | kRightGrFl | kTopGrFl | kBottomGrFl
|
unsigned wlimitFlags; // kLeftGrFl | kRightGrFl | kTopGrFl | kBottomGrFl
|
||||||
cmGrVExt_t wlimitExt; // limit extents for wext (ext's with set flags always define the associated wext value)
|
cmGrVExt_t wlimitExt; // limit extents for wext (ext's with set flags always define the associated wext value)
|
||||||
|
|
||||||
struct cmGrObj_str* parent;
|
struct cmGrObj_str* parent;
|
||||||
struct cmGrObj_str* children;
|
struct cmGrObj_str* children;
|
||||||
|
2
cmGr.h
2
cmGr.h
@ -445,7 +445,7 @@ extern "C" {
|
|||||||
#define cmGrPExtIsNullOrEmpty(e) (cmGrPExtIsNull(e)||cmGrPExtIsEmpty(e))
|
#define cmGrPExtIsNullOrEmpty(e) (cmGrPExtIsNull(e)||cmGrPExtIsEmpty(e))
|
||||||
#define cmGrPExtIsNotEmpty(e) (!cmGrPExtIsEmpty(e))
|
#define cmGrPExtIsNotEmpty(e) (!cmGrPExtIsEmpty(e))
|
||||||
#define cmGrPExtIsNotNull(e) (!cmGrPExtIsNull(e))
|
#define cmGrPExtIsNotNull(e) (!cmGrPExtIsNull(e))
|
||||||
#define cmGrPExtIsNotNullOrEmpty(e) (cmGrPExtIsNotNull(e)||cmGrPExtIsNoEmpty(e))
|
#define cmGrPExtIsNotNullOrEmpty(e) (cmGrPExtIsNotNull(e)&&cmGrPExtIsNotEmpty(e))
|
||||||
|
|
||||||
#define cmGrPExtIsEqual( e0, e1 ) (cmGrPPtIsEqual(&(e0)->loc,&(e1)->loc) && cmGrPSzIsEqual(&(e0)->sz, &(e1)->sz))
|
#define cmGrPExtIsEqual( e0, e1 ) (cmGrPPtIsEqual(&(e0)->loc,&(e1)->loc) && cmGrPSzIsEqual(&(e0)->sz, &(e1)->sz))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user