summaryrefslogtreecommitdiff
path: root/app/bin/chotbar.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-12-28 20:24:50 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-12-28 20:24:50 +0100
commit09795a01ef859f072920de9df974d1b03b9ab9a4 (patch)
tree4d05907fc37f1bd781e506f5e196f7435aeec0ab /app/bin/chotbar.c
parent5b4163d8c76b03f0d31b09866aa4bd06b4d8d804 (diff)
New upstream version 4.2.4aupstream/4.2.4a
Diffstat (limited to 'app/bin/chotbar.c')
-rw-r--r--app/bin/chotbar.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/app/bin/chotbar.c b/app/bin/chotbar.c
index b430f61..f138cbb 100644
--- a/app/bin/chotbar.c
+++ b/app/bin/chotbar.c
@@ -1,8 +1,5 @@
-/*
- * $Header: /home/dmarkle/xtrkcad-fork-cvs/xtrkcad/app/bin/chotbar.c,v 1.4 2009-10-15 03:54:32 dspagnol Exp $
- *
+/** \file chotbar.c
* HOT BAR
- *
*/
/* XTrkCad - Model Railroad CAD
@@ -296,13 +293,13 @@ EXPORT void HotBarCancel( void )
HotBarHighlight( hotBarCurrSelect );
hotBarCurrSelect = -1;
}
-
+
static BOOL_T HotBarSelectPlayback( char * line )
{
int inx;
hotBarMap_t * tbm;
- while (*line && isspace(*line) ) line++;
+ while (*line && isspace((unsigned char)*line) ) line++;
for ( inx=0; inx<hotBarMap_da.cnt; inx++ ) {
tbm = &hotBarMap(inx);
if ( strcmp( tbm->proc( HB_FULLTITLE, tbm->context, NULL, NULL ), line) == 0) {
@@ -355,7 +352,7 @@ EXPORT void AddHotBarElement(
wMenuListAdd( hotBarML, hotBarMLcnt++, contentsLabel, (void*)(intptr_t)hotBarMap_da.cnt );
strncpy( curContentsLabel, contentsLabel, sizeof curContentsLabel );
}
-
+
if (barScale <= 0) {
if (isTrack)
barScale = (trackGauge>0.1)?trackGauge*24:10;
@@ -381,7 +378,7 @@ EXPORT void AddHotBarElement(
tbm->labelW = textsize.x+5/hotBarD.dpi;
if ( tbm->labelW > tbm->w ) {
tbm->w = tbm->labelW;
- }
+ }
}
hotBarWidth += tbm->w;
}