updated Readme
parent
073affc975
commit
33637284d8
|
@ -1,4 +1,4 @@
|
|||
# GUI
|
||||
# Zahnrad
|
||||
[![Coverity Status](https://scan.coverity.com/projects/5863/badge.svg)](https://scan.coverity.com/projects/5863)
|
||||
|
||||
This is a bloat free minimal state immediate mode graphical user interface toolkit
|
||||
|
@ -33,14 +33,12 @@ gui_style_default(&style, GUI_DEFAULT_ALL, &font);
|
|||
|
||||
/* allocate memory to hold draw commands */
|
||||
struct gui_command_queue queue;
|
||||
void *memory = malloc(MEMORY_SIZE);
|
||||
gui_command_queue_init_fixed(&queue, memory, MEMORY_SIZE);
|
||||
gui_command_queue_init_fixed(&queue, malloc(MEMORY_SIZE), MEMORY_SIZE);
|
||||
|
||||
/* initialize panel */
|
||||
struct gui_window panel;
|
||||
gui_window_init(&panel, 50, 50, 220, 180,
|
||||
GUI_PANEL_BORDER|GUI_PANEL_MOVEABLE|GUI_PANEL_SCALEABLE,
|
||||
&queue, &style, &input);
|
||||
GUI_PANEL_BORDER|GUI_PANEL_MOVEABLE|GUI_PANEL_SCALEABLE, &queue, &style, &input);
|
||||
|
||||
/* setup widget data */
|
||||
enum {EASY, HARD};
|
||||
|
|
Loading…
Reference in New Issue