From e6b808f3fc8f144d303915c5ff124285151d1644 Mon Sep 17 00:00:00 2001 From: vurtun Date: Tue, 14 Jul 2015 13:56:59 +0200 Subject: [PATCH] fixed c++ errors --- gui.c | 3 +-- gui.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/gui.c b/gui.c index 749d7b3d..7b60d5b1 100644 --- a/gui.c +++ b/gui.c @@ -876,7 +876,7 @@ gui_edit_buffer_at(gui_edit_buffer *buffer, gui_int pos, gui_long *unicode, return 0; } - text = buffer->memory.ptr; + text = (gui_char*)buffer->memory.ptr; text_len = buffer->allocated; glyph_len = gui_utf_decode(text, unicode, text_len); while (glyph_len) { @@ -2846,7 +2846,6 @@ gui_panel_alloc_space(struct gui_rect *bounds, struct gui_panel_layout *layout) /* user provided ratio layout */ if (layout->row.ratio) { /* ratio in array form */ - gui_size i; gui_float ratio = (layout->row.ratio[layout->index] < 0) ? layout->row.item_ratio : layout->row.ratio[layout->index]; diff --git a/gui.h b/gui.h index a415d311..16f39865 100644 --- a/gui.h +++ b/gui.h @@ -1701,7 +1701,6 @@ struct gui_panel_layout { /* command draw call output command buffer */ }; - struct gui_layout; void gui_panel_init(struct gui_panel*, gui_float x, gui_float y, gui_float w, gui_float h, gui_flags, struct gui_command_buffer*,