From 7938b29853d692b317a6c2773dc264bfa48d0845 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Tue, 23 Jan 2018 16:15:31 +0100 Subject: [PATCH] apply tuxtxt font changes to users settings Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/af9a9ef532c94ccd18cc07ec0c4bf16e2b8ccf8e Author: vanhofen Date: 2018-01-23 (Tue, 23 Jan 2018) Origin message was: ------------------ - apply tuxtxt font changes to users settings ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/neutrino.cpp | 6 ++++++ version_pseudo.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/neutrino.cpp b/src/neutrino.cpp index 7f495c458..daa89581f 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -1199,6 +1199,12 @@ void CNeutrinoApp::upgradeSetup(const char * fname) //remove easymenu configfile.deleteKey("easymenu"); } + if (g_settings.version_pseudo < "20180123160000") + { + // apply tuxtxt font changes + if (g_settings.ttx_font_file == FONTDIR "/DejaVuLGCSansMono-Bold.ttf") + g_settings.ttx_font_file = FONTDIR "/tuxtxt.ttf"; + } g_settings.version_pseudo = NEUTRINO_VERSION_PSEUDO; configfile.setString("version_pseudo", g_settings.version_pseudo); diff --git a/version_pseudo.h b/version_pseudo.h index d32ebccc9..080750cd6 100644 --- a/version_pseudo.h +++ b/version_pseudo.h @@ -1 +1 @@ -#define NEUTRINO_VERSION_PSEUDO "20170913110000" +#define NEUTRINO_VERSION_PSEUDO "20180123160000"