More code style

This commit is contained in:
Np3w 2017-08-11 17:23:53 +02:00
parent 7abda4436b
commit 2f56f8b890

View File

@ -18770,9 +18770,8 @@ nk_window_is_hovered(struct nk_context *ctx)
NK_ASSERT(ctx);
NK_ASSERT(ctx->current);
if (!ctx || !ctx->current) return 0;
if(ctx->current->flags & NK_WINDOW_HIDDEN){
if(ctx->current->flags & NK_WINDOW_HIDDEN)
return 0;
}
return nk_input_is_mouse_hovering_rect(&ctx->input, ctx->current->bounds);
}