summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik.ramaekers@protonmail.com>2020-05-20 16:06:35 +0200
committerAldrik Ramaekers <aldrik.ramaekers@protonmail.com>2020-05-20 16:06:35 +0200
commit52d15199a4f2781f285d84fd78b71bbc23b85468 (patch)
tree7e42d81166f675558aac320f0420b91baa3c563d /src
parent90a255b193f00bcd87dd83a01acc2cfd88d61e51 (diff)
work
Diffstat (limited to 'src')
-rw-r--r--src/config.h1
-rw-r--r--src/save.c2
-rw-r--r--src/settings.c8
3 files changed, 10 insertions, 1 deletions
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);
}
}