fixed c++ errors

This commit is contained in:
vurtun 2015-07-14 13:56:59 +02:00
parent 4844e93875
commit e6b808f3fc
2 changed files with 1 additions and 3 deletions

3
gui.c
View File

@ -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];

1
gui.h
View File

@ -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*,