summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changes.txt6
-rw-r--r--src/config.h1
-rw-r--r--src/save.c2
-rw-r--r--src/settings.c8
4 files changed, 14 insertions, 3 deletions
diff --git a/changes.txt b/changes.txt
index ba8d69b..5efb44a 100644
--- a/changes.txt
+++ b/changes.txt
@@ -1,8 +1,10 @@
-1.1 (not released)
+1.2
+- show version on settings page
+1.1
- show active project path in title
- decreased binary size
-- fix bug where settings was being saved without clicking the save button
+- fix bug where settings were being saved without clicking the save button
- lower cpu usage when idle
- small ui improvements
1.0
diff --git a/src/config.h b/src/config.h
index 150919d..f0158cf 100644
--- a/src/config.h
+++ b/src/config.h
@@ -8,6 +8,7 @@
#define INCLUDE_CONFIG
#define TARGET_FRAMERATE (1000/24.0)
+#define VERSION "1.0.2"
#define SCROLL_SPEED 50
#define FILE_RESERVE_COUNT 500
diff --git a/src/save.c b/src/save.c
index 2453c98..5b4b4a3 100644
--- a/src/save.c
+++ b/src/save.c
@@ -230,7 +230,7 @@ void load_project_from_folder(char *path_buf)
string_appendn(total_path, "/", MAX_INPUT_LENGTH);
#endif
- platform_list_files_block(&files, total_path, filters, false, 0, false, &is_cancelled);
+ platform_list_files_block(&files, total_path, filters, false, 0, false, &is_cancelled, 0);
for (s32 i = 0; i < files.length; i++)
{
found_file *file = array_at(&files, i);
diff --git a/src/settings.c b/src/settings.c
index f9249e8..118dca7 100644
--- a/src/settings.c
+++ b/src/settings.c
@@ -137,6 +137,14 @@ void settings_page_update_render()
return;
}
+ // version nr
+ {
+
+ s32 w = calculate_text_width(global_settings_page.font_small, VERSION);
+ render_text(global_settings_page.font_small, global_settings_page.window.width-w - 10,
+ global_settings_page.window.height-global_settings_page.font_small->px_h - 10, VERSION, rgb(120,120,120));
+ }
+
platform_window_swap_buffers(&global_settings_page.window);
}
}