mirror of
https://github.com/nishiowo/nishbox
synced 2025-04-21 20:24:39 +00:00
fix indent
This commit is contained in:
parent
7c21ff6f75
commit
976cb45c2f
@ -71,13 +71,15 @@ gf_gui_component_t* gf_gui_first_unused(gf_gui_t* gui, gf_gui_id_t* id) {
|
||||
gf_gui_id_t gf_gui_create_button(gf_gui_t* gui, float x, float y, float w, float h, const char* text) {
|
||||
gf_gui_id_t id;
|
||||
gf_gui_component_t* c = gf_gui_first_unused(gui, &id);
|
||||
c->type = GF_GUI_BUTTON;
|
||||
c->x = x;
|
||||
c->y = y;
|
||||
c->w = w;
|
||||
c->h = h;
|
||||
c->u.button.pressed = 0;
|
||||
c->u.button.text = malloc(strlen(text) + 1);
|
||||
|
||||
c->type = GF_GUI_BUTTON;
|
||||
c->x = x;
|
||||
c->y = y;
|
||||
c->w = w;
|
||||
c->h = h;
|
||||
|
||||
c->u.button.pressed = 0;
|
||||
c->u.button.text = malloc(strlen(text) + 1);
|
||||
strcpy(c->u.button.text, text);
|
||||
return id;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user