Bläddra i källkod

Fixed #322 C89 compiler error

vurtun 8 år sedan
förälder
incheckning
13c785d68b
1 ändrade filer med 3 tillägg och 2 borttagningar
  1. 3 2
      nuklear.h

+ 3 - 2
nuklear.h

@@ -18358,6 +18358,9 @@ nk_layout_widget_space(struct nk_rect *bounds, const struct nk_context *ctx,
     struct nk_panel *layout;
     const struct nk_style *style;
 
+    struct nk_vec2 spacing;
+    struct nk_vec2 padding;
+
     float item_offset = 0;
     float item_width = 0;
     float item_spacing = 0;
@@ -18374,8 +18377,6 @@ nk_layout_widget_space(struct nk_rect *bounds, const struct nk_context *ctx,
     style = &ctx->style;
     NK_ASSERT(bounds);
 
-    struct nk_vec2 spacing;
-    struct nk_vec2 padding;
     spacing = style->window.spacing;
     padding = nk_panel_get_padding(style, layout->type);
     panel_space = nk_layout_row_calculate_usable_space(&ctx->style, layout->type,