mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 22:40:39 +02:00
Put platform specific defaults in systemwide gmenu2x.conf.
It is simpler to maintain them there instead of in the code.
This commit is contained in:
parent
19064b4c4a
commit
a014a331f4
@ -1,4 +1,4 @@
|
|||||||
videoBpp=16
|
videoBpp=32
|
||||||
menuClock=200
|
menuClock=192
|
||||||
maxClock=408
|
maxClock=408
|
||||||
backlightTimeout=60
|
backlightTimeout=60
|
||||||
|
@ -702,13 +702,7 @@ void GMenu2X::readConfig(string conffile) {
|
|||||||
evalIntConf( &confInt["globalVolume"], 67, 0,100 );
|
evalIntConf( &confInt["globalVolume"], 67, 0,100 );
|
||||||
evalIntConf( &confInt["backlightTimeout"], 15, 0,120 );
|
evalIntConf( &confInt["backlightTimeout"], 15, 0,120 );
|
||||||
evalIntConf( &confInt["backlight"], 100, 5,100 );
|
evalIntConf( &confInt["backlight"], 100, 5,100 );
|
||||||
evalIntConf( &confInt["videoBpp"],
|
evalIntConf( &confInt["videoBpp"], 32, 16, 32 );
|
||||||
#ifdef PLATFORM_DINGUX
|
|
||||||
32, // 16 would be better if the kernel could flip on vsync
|
|
||||||
#else
|
|
||||||
32,
|
|
||||||
#endif
|
|
||||||
16, 32 );
|
|
||||||
|
|
||||||
if (confStr["tvoutEncoding"] != "PAL") confStr["tvoutEncoding"] = "NTSC";
|
if (confStr["tvoutEncoding"] != "PAL") confStr["tvoutEncoding"] = "NTSC";
|
||||||
resX = constrain( confInt["resolutionX"], 320,1920 );
|
resX = constrain( confInt["resolutionX"], 320,1920 );
|
||||||
|
Loading…
Reference in New Issue
Block a user