Browse Source

fixed #363 wrong example in documentation

Micha Mettke 8 years ago
parent
commit
e6a6fe5b21
1 changed files with 1 additions and 1 deletions
  1. 1 1
      nuklear.h

+ 1 - 1
nuklear.h

@@ -1274,7 +1274,7 @@ NK_API const char*              nk_utf_at(const char *buffer, int length, int in
         nk_font_atlas_begin(&atlas);
         nk_font_atlas_begin(&atlas);
         nk_font *font = nk_font_atlas_add_from_file(&atlas, "Path/To/Your/TTF_Font.ttf", 13, 0);
         nk_font *font = nk_font_atlas_add_from_file(&atlas, "Path/To/Your/TTF_Font.ttf", 13, 0);
         nk_font *font2 = nk_font_atlas_add_from_file(&atlas, "Path/To/Your/TTF_Font2.ttf", 16, 0);
         nk_font *font2 = nk_font_atlas_add_from_file(&atlas, "Path/To/Your/TTF_Font2.ttf", 16, 0);
-        void* img = nk_font_atlas_bake(&atlas, &img_width, &img_height, NK_FONT_ATLAS_RGBA32, 0);
+        const void* img = nk_font_atlas_bake(&atlas, &img_width, &img_height, NK_FONT_ATLAS_RGBA32);
         nk_font_atlas_end(&atlas, nk_handle_id(texture), 0);
         nk_font_atlas_end(&atlas, nk_handle_id(texture), 0);
 
 
         struct nk_context ctx;
         struct nk_context ctx;