1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-22 17:12:29 +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:
Maarten ter Huurne 2011-09-19 01:12:34 +02:00
parent 19064b4c4a
commit a014a331f4
2 changed files with 3 additions and 9 deletions

View File

@ -1,4 +1,4 @@
videoBpp=16
menuClock=200
videoBpp=32
menuClock=192
maxClock=408
backlightTimeout=60

View File

@ -702,13 +702,7 @@ void GMenu2X::readConfig(string conffile) {
evalIntConf( &confInt["globalVolume"], 67, 0,100 );
evalIntConf( &confInt["backlightTimeout"], 15, 0,120 );
evalIntConf( &confInt["backlight"], 100, 5,100 );
evalIntConf( &confInt["videoBpp"],
#ifdef PLATFORM_DINGUX
32, // 16 would be better if the kernel could flip on vsync
#else
32,
#endif
16, 32 );
evalIntConf( &confInt["videoBpp"], 32, 16, 32 );
if (confStr["tvoutEncoding"] != "PAL") confStr["tvoutEncoding"] = "NTSC";
resX = constrain( confInt["resolutionX"], 320,1920 );