Explorar el Código

fixed #363 wrong example in documentation

Micha Mettke hace 8 años
padre
commit
e6a6fe5b21
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 *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);
-        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);
 
         struct nk_context ctx;