From b2ea6fb1553da8c5f1aba2ae21ead86d7cee1d1d Mon Sep 17 00:00:00 2001 From: vurtun Date: Wed, 28 Oct 2015 10:36:17 +0100 Subject: [PATCH] updated Readme --- Readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Readme.md b/Readme.md index 2f904f9..9dc5aa3 100644 --- a/Readme.md +++ b/Readme.md @@ -44,15 +44,15 @@ draw the GUI. ## Example ```c +/* allocate memory to hold draw commands */ +struct zr_command_queue queue; +zr_command_queue_init_fixed(&queue, malloc(MEMORY_SIZE), MEMORY_SIZE); + /* setup configuration */ struct zr_style style; struct zr_user_font font = {...}; zr_style_default(&style, ZR_DEFAULT_ALL, &font); -/* allocate memory to hold draw commands */ -struct zr_command_queue queue; -zr_command_queue_init_fixed(&queue, malloc(MEMORY_SIZE), MEMORY_SIZE); - /* initialize window */ struct zr_window window; zr_window_init(&window, zr_rect(50, 50, 220, 180),