neutrino: align tuxtxt defaults with config file

Let the code use the same defaults as are in the config file,
so that installing the config file is no longer necessary.
This makes for easier packaging of neutrino.

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1829 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
seife
2011-11-05 17:10:03 +00:00
parent 27690fb7a0
commit e69a204e73
2 changed files with 8 additions and 6 deletions

View File

@@ -16,5 +16,7 @@ noinst_LIBRARIES = libtuxtxt.a
libtuxtxt_a_SOURCES = libtuxtxt.cpp tuxtxt.cpp libtuxtxt_a_SOURCES = libtuxtxt.cpp tuxtxt.cpp
configdir = $(CONFIGDIR)/tuxtxt ## not necessary - the defaults in the code are exactly like
config_DATA = tuxtxt2.conf ## what is in the config file
#configdir = $(CONFIGDIR)/tuxtxt
#config_DATA = tuxtxt2.conf

View File

@@ -1912,7 +1912,7 @@ int Init(int source)
screenmode = 0; screenmode = 0;
screen_mode1 = 0; screen_mode1 = 0;
color_mode = 10; color_mode = 10;
trans_mode = 10; trans_mode = 1;
menulanguage = 1; /* english */ menulanguage = 1; /* english */
/*national_subset = 0;*//* default */ /*national_subset = 0;*//* default */
auto_national = 1; auto_national = 1;
@@ -1923,10 +1923,10 @@ int Init(int source)
showl25 = 1; showl25 = 1;
dumpl25 = 0; dumpl25 = 0;
usettf = 1; usettf = 1;
TTFWidthFactor16 = 28; TTFWidthFactor16 = 22;
TTFHeightFactor16 = 16; TTFHeightFactor16 = 14;
TTFShiftX = 0; TTFShiftX = 0;
TTFShiftY = 0; TTFShiftY = -2;
/* load config */ /* load config */
if ((conf = fopen(TUXTXTCONF, "rt")) == 0) if ((conf = fopen(TUXTXTCONF, "rt")) == 0)