Skip to content

Commit

Permalink
include version number & build mode in window titles & help menu
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanfleury committed Jan 11, 2024
1 parent 5633353 commit ac259f0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/df/gfx/df_gfx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,7 @@ df_window_open(Vec2F32 size, OS_Handle preferred_monitor, DF_CfgSrc cfg_src)
window->cfg_src = cfg_src;
window->arena = arena_alloc();
{
String8 title = str8_lit_comp("The RAD Debugger (ALPHA) - " __DATE__);
String8 title = str8_lit_comp(RADDBG_TITLE_STRING_LITERAL);
window->os = os_window_open(size, title);
}
window->r = r_window_equip(window->os);
Expand Down Expand Up @@ -4452,9 +4452,9 @@ df_window_update_and_render(Arena *arena, OS_EventList *events, DF_Window *ws, D

// rjf: help menu
UI_Key help_menu_key = ui_key_from_string(ui_key_zero(), str8_lit("_help_menu_key_"));
UI_CtxMenu(help_menu_key) UI_PrefWidth(ui_em(30.f, 1.f))
UI_CtxMenu(help_menu_key) UI_PrefWidth(ui_em(40.f, 1.f))
{
ui_labelf("The RAD Debugger (ALPHA) - %s", __DATE__);
ui_label(str8_lit_comp(RADDBG_TITLE_STRING_LITERAL));
ui_spacer(ui_em(0.75f, 1.f));
ui_label_multiline(ui_top_font_size()*30.f, str8_lit("If you run into issues, please send an email describing them to:"));
UI_TextAlignment(UI_TextAlign_Center)
Expand Down
10 changes: 10 additions & 0 deletions src/raddbg/raddbg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@
////////////////////////////////
//~ rjf: Settings

#define RADDBG_VERSION_MAJOR 0
#define RADDBG_VERSION_MINOR 9
#define RADDBG_VERSION_PATCH 0
#define RADDBG_VERSION_STRING_LITERAL Stringify(RADDBG_VERSION_MAJOR) "." Stringify(RADDBG_VERSION_MINOR) "." Stringify(RADDBG_VERSION_PATCH)
#if defined(NDEBUG)
# define RADDBG_TITLE_STRING_LITERAL "The RAD Debugger (" RADDBG_VERSION_STRING_LITERAL " ALPHA) - " __DATE__ ""
#else
# define RADDBG_TITLE_STRING_LITERAL "The RAD Debugger (" RADDBG_VERSION_STRING_LITERAL " ALPHA) - " __DATE__ " [Debug]"
#endif

#define ENABLE_DEV 1
#define DE2CTRL 1

Expand Down

0 comments on commit ac259f0

Please sign in to comment.