fixed zr_size size

This commit is contained in:
vurtun 2016-01-12 22:01:17 +01:00
parent ebe91cef38
commit 6df415f5e0
2 changed files with 4 additions and 4 deletions

View File

@ -102,7 +102,7 @@ enum zr_internal_window_flags {
struct zr_popup {
struct zr_window *win;
enum zr_internal_window_flags type;
zr_ulong name;
zr_hash name;
int active;
unsigned con_count, con_old;
@ -6770,7 +6770,7 @@ zr_begin(struct zr_context *ctx, struct zr_layout *layout,
/* NOTE: I am not really sure if activating a window should directly
* happen on that frame or the following frame. Directly would simplify
* clicking window closing/minimizing but could case wrong behavior.
* clicking window closing/minimizing but could cause wrong behavior.
* For now I activate the window on the next frame to prevent wrong
* behavior. If not wanted just replace line with:
* win->flags &= ~(zr_flags)ZR_WINDOW_ROM; */
@ -6779,7 +6779,7 @@ zr_begin(struct zr_context *ctx, struct zr_layout *layout,
}
if (ctx->end != win)
win->flags |= ZR_WINDOW_ROM;
}
}
win->layout = layout;
ctx->current = win;

View File

@ -80,7 +80,7 @@ extern "C" {
typedef uint32_t zr_uint;
typedef uint32_t zr_hash;
typedef uint64_t zr_ulong;
typedef uint64_t zr_size;
typedef uintptr_t zr_size;
typedef uintptr_t zr_ptr;
typedef uint32_t zr_flags;
typedef uint32_t zr_rune;