diff --git a/examples/custom_file_dialog/custom_file_dialog.c b/examples/custom_file_dialog/custom_file_dialog.c index 67002a5..9a801b0 100644 --- a/examples/custom_file_dialog/custom_file_dialog.c +++ b/examples/custom_file_dialog/custom_file_dialog.c @@ -18,7 +18,7 @@ #include "raylib.h" #define RAYGUI_IMPLEMENTATION -#define RAYGUI_SUPPORT_RICONS +#define RAYGUI_SUPPORT_ICONS #include "../../src/raygui.h" #undef RAYGUI_IMPLEMENTATION // Avoid including raygui implementation again diff --git a/examples/custom_file_dialog/gui_file_dialog.h b/examples/custom_file_dialog/gui_file_dialog.h index 8520483..26e8ce6 100644 --- a/examples/custom_file_dialog/gui_file_dialog.h +++ b/examples/custom_file_dialog/gui_file_dialog.h @@ -243,15 +243,15 @@ void GuiFileDialog(GuiFileDialogState *state) } int prevTextAlignment = GuiGetStyle(LISTVIEW, TEXT_ALIGNMENT); - int prevElementsHeight = GuiGetStyle(LISTVIEW, ELEMENTS_HEIGHT); + int prevElementsHeight = GuiGetStyle(LISTVIEW, LIST_ITEMS_HEIGHT); GuiSetStyle(LISTVIEW, TEXT_ALIGNMENT, GUI_TEXT_ALIGN_LEFT); - GuiSetStyle(LISTVIEW, ELEMENTS_HEIGHT, 24); + GuiSetStyle(LISTVIEW, LIST_ITEMS_HEIGHT, 24); // TODO: ListViewElements should be aligned left - state->filesListActive = GuiListViewEx((Rectangle){ state->position.x + 10, state->position.y + 70, 460, 164 }, dirFilesIcon, state->dirFilesCount, NULL, &state->filesListScrollIndex, state->filesListActive); + state->filesListActive = GuiListViewEx((Rectangle){ state->position.x + 10, state->position.y + 70, 460, 164 }, (const char **)dirFilesIcon, state->dirFilesCount, NULL, &state->filesListScrollIndex, state->filesListActive); GuiSetStyle(LISTVIEW, TEXT_ALIGNMENT, prevTextAlignment); - GuiSetStyle(LISTVIEW, ELEMENTS_HEIGHT, prevElementsHeight); + GuiSetStyle(LISTVIEW, LIST_ITEMS_HEIGHT, prevElementsHeight); if ((state->filesListActive >= 0) && (state->filesListActive != state->prevFilesListActive)) {