Skip to content

Commit

Permalink
Add beta number to the about window
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrg committed Mar 2, 2024
1 parent 62abeee commit c7d887b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Windows NT for MIPS computers, though without TAPI support.
* Binaries are now provided for Windows NT running on Alpha, MIPS and PowerPC
systems.
* Upgraded to C-Kermit 10.0 Pre-Beta.11
* About window (Help -> About) now includes the beta number

### Source Changes

Expand Down
7 changes: 7 additions & 0 deletions kermit/k95/kui/kabout.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ static KAbout* kabout = 0;

extern "C" {
extern char *ck_s_ver;
#ifdef BETATEST
extern char *ck_s_test, *ck_s_tver;
#endif /* BETATEST */
}

/*------------------------------------------------------------------------
Expand Down Expand Up @@ -80,7 +83,11 @@ Bool KAbout::message( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam )
// Set the version string
#define VERSION_LEN 128
char version[VERSION_LEN];
#ifdef BETATEST
_snprintf(version, VERSION_LEN, "Version %s %s.%s", ck_s_ver, ck_s_test, ck_s_tver);
#else
_snprintf(version, VERSION_LEN, "Version %s", ck_s_ver);
#endif

SendDlgItemMessage(hWnd, IDC_VERSION, WM_SETTEXT, 0,
(LPARAM) version);
Expand Down

0 comments on commit c7d887b

Please sign in to comment.