瀏覽代碼

Merge pull request #373 from RUSshy/patch-1

Made properties static or they can't be changed
Micha Mettke 8 年之前
父節點
當前提交
46e55e14f3
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Readme.md

+ 3 - 3
Readme.md

@@ -59,9 +59,9 @@ struct nk_context ctx;
 nk_init_fixed(&ctx, calloc(1, MAX_MEMORY), MAX_MEMORY, &font);
 
 enum {EASY, HARD};
-int op = EASY;
-float value = 0.6f;
-int i =  20;
+static int op = EASY;
+static float value = 0.6f;
+static int i =  20;
 
 if (nk_begin(&ctx, "Show", nk_rect(50, 50, 220, 220),
     NK_WINDOW_BORDER|NK_WINDOW_MOVABLE|NK_WINDOW_CLOSABLE)) {