Use defined nk type
This commit is contained in:
parent
0b3e282286
commit
59d53ef253
@ -5452,7 +5452,7 @@ struct nk_context {
|
|||||||
|
|
||||||
#define NK_UNUSED(x) ((void)(x))
|
#define NK_UNUSED(x) ((void)(x))
|
||||||
#define NK_SATURATE(x) (NK_MAX(0, NK_MIN(1.0f, x)))
|
#define NK_SATURATE(x) (NK_MAX(0, NK_MIN(1.0f, x)))
|
||||||
#define NK_LEN(x) ((sizeof(x)/sizeof(0[x])) / ((size_t)(!(sizeof(x) % sizeof(0[x])))))
|
#define NK_LEN(x) ((sizeof(x)/sizeof(0[x])) / ((nk_size)(!(sizeof(x) % sizeof(0[x])))))
|
||||||
#define NK_ABS(a) (((a) < 0) ? -(a) : (a))
|
#define NK_ABS(a) (((a) < 0) ? -(a) : (a))
|
||||||
#define NK_BETWEEN(x, a, b) ((a) <= (x) && (x) < (b))
|
#define NK_BETWEEN(x, a, b) ((a) <= (x) && (x) < (b))
|
||||||
#define NK_INBOX(px, py, x, y, w, h)\
|
#define NK_INBOX(px, py, x, y, w, h)\
|
||||||
|
Loading…
Reference in New Issue
Block a user