Skip to content

Commit b366683

Browse files
authored
Add FLTK version to 'About' and bump app version
* Added the FLTK version used to compile the app in the 'About / Help' text * Bumped app version to 0.7.0 to reflect change from 1.3.x to 1.4.x
1 parent 44f7003 commit b366683

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

src/app.cxx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2934,17 +2934,21 @@ void svShowAboutHelp ()
29342934
hv->color(FL_BACKGROUND2_COLOR);
29352935
hv->textsize(app->nAppFontSize);
29362936
hv->textfont(0);
2937+
2938+
char flVersion[20] = {};
2939+
2940+
snprintf(flVersion, 19, "%i.%i.%i", FL_MAJOR_VERSION, FL_MINOR_VERSION, FL_PATCH_VERSION);
29372941

2938-
const char strHelp[] = "<center><font face='sans'><h5>SpiritVNC - FLTK</h5></font></center>"
2939-
2942+
std::string strHelp = "<center><font face='sans'><h5>SpiritVNC - FLTK</h5></font></center>"
29402943
"<p><center>"
29412944
"&copy; 2016-" SV_CURRENT_YEAR " Will Brokenbourgh - <a href='https://www.willbrokenbourgh.com/brainout/'>"
29422945
"https://www.willbrokenbourgh.com/brainout/</a>"
29432946
"</center></p>"
29442947
// -
29452948
"<p><center>"
29462949
"Version " SV_APP_VERSION "&nbsp;&bull;&nbsp;"
2947-
"Built " __DATE__ "&nbsp;&bull;&nbsp;" __TIME__
2950+
"Built " __DATE__ "&nbsp;&bull;&nbsp;" __TIME__ "<br>"
2951+
"FLTK version " + std::string(flVersion) +
29482952
"</center></p>"
29492953
// -
29502954
"<p><center>"
@@ -2953,7 +2957,6 @@ void svShowAboutHelp ()
29532957
" connections and automatic timed scanning of each connected viewer."
29542958
"</center></p>"
29552959
// ---
2956-
"<p><center><font color='gray'>- - -</font></center></p>"
29572960
"<p><center><strong>Instructions</strong></center><br>"
29582961
// -
29592962
"<ul>"
@@ -2968,25 +2971,25 @@ void svShowAboutHelp ()
29682971
"<li>To disconnect, edit or 'paste' a F12 macro to a 'listening' connection, right-click it while connected</li>"
29692972
"<li>To change application options, click the settings button (looks like three control sliders)</li>"
29702973
"<li>To perform remote actions, press F8 when a remote host is being displayed</li>"
2971-
"<li>See the README file for more detailed instructions</li>"
2974+
"<li>See the README.md file for more detailed instructions</li>"
29722975
"</ul>"
29732976
// ---
2974-
"<p><center><font color='gray'>- - -</font></center></p>"
29752977
"<p><center>"
29762978
"Many thanks to the <em>FLTK</em> and <em>libvncserver</em> projects for their libraries "
29772979
"and example code."
29782980
"</center></p>"
29792981
// -
29802982
"<p><center>"
2981-
"&nbsp;If you have any questions, need to report a bug or have suggestions, please"
2983+
"&nbsp;If you have any questions, need to report a bug or have suggestions, please create an issue on "
2984+
"github or "
29822985
" <a href='https://www.willbrokenbourgh.com/brainout/content/spiritvnc.php'>visit the SpiritVNC page</a>"
29832986
"&nbsp;"
29842987
"</center></p>"
29852988
// -
29862989
"<p><center><strong>To God be the glory! :-D</strong></center></p>";
29872990

29882991
// set helpview's text
2989-
hv->value(strHelp);
2992+
hv->value(strHelp.c_str());
29902993

29912994
// 'OK' button
29922995
Fl_Button * btnOK = new Fl_Button((nWinWidth - 100 - 10), nWinHeight - (35 + 10), 100, 35, "OK");

src/consts_enums.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#define CONSTS_H
3737

3838
/* constants */
39-
#define SV_APP_VERSION "0.6.5"
39+
#define SV_APP_VERSION "0.7.0"
4040

4141
#define SV_CURRENT_YEAR "2025"
4242

0 commit comments

Comments
 (0)