mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
avoid configuration mismatch in screen settings
Origin commit data
------------------
Commit: ad8e6180aa
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-01-13 (Fri, 13 Jan 2017)
Origin message was:
------------------
- avoid configuration mismatch in screen settings
This commit is contained in:
committed by
Michael Liebmann
parent
252208b058
commit
e994f66c6f
@@ -739,6 +739,12 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
||||
g_settings.screen_width = frameBuffer->getScreenWidth(true);
|
||||
g_settings.screen_height = frameBuffer->getScreenHeight(true);
|
||||
|
||||
// avoid configuration mismatch
|
||||
if (g_settings.screen_EndX > g_settings.screen_width)
|
||||
g_settings.screen_EndX = g_settings.screen_width;
|
||||
if (g_settings.screen_EndY > g_settings.screen_height)
|
||||
g_settings.screen_EndY = g_settings.screen_height;
|
||||
|
||||
g_settings.bigFonts = configfile.getInt32("bigFonts", 0);
|
||||
g_settings.window_size = configfile.getInt32("window_size", 100);
|
||||
g_settings.window_width = configfile.getInt32("window_width", g_settings.window_size);
|
||||
|
Reference in New Issue
Block a user