From 8d5f8f28a457babcf353fa546587d6a0d5c1bc86 Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 7 Feb 2020 11:40:59 +0100 Subject: [PATCH] Review LIST_ITEMS_HEIGHT property --- examples/custom_file_dialog/custom_file_dialog.c | 2 +- examples/custom_file_dialog/gui_file_dialog.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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)) {