Permalink
Browse files

Merge pull request #1830 from Montellese/screenmode_settings_update

settings: update videoscreen.screenmode value when updating to Frodo
  • Loading branch information...
Montellese committed Nov 23, 2012
2 parents 5c97dec + d74f403 commit 914e708cda50da171fe00534f442b67b3b7868cb
Showing with 11 additions and 0 deletions.
  1. +11 −0 xbmc/settings/GUISettings.cpp
@@ -1383,6 +1383,17 @@ void CGUISettings::LoadXML(TiXmlElement *pRootElement, bool hideSettings /* = fa
}
}
+ // and fix the videoscreen.screenmode if necessary
+ std::string screenmode = GetString("videoscreen.screenmode");
+ // in Eden there was no character ("i" or "p") indicating interlaced/progressive
+ // at the end so we just add a "p" and assume progressive
+ if (screenmode.size() == 20)
+ {
+ screenmode += "p";
+ SetString("videoscreen.screenmode", screenmode.c_str());
+ updated = true;
+ }
+
// Get hardware based stuff...
CLog::Log(LOGNOTICE, "Getting hardware information now...");
// FIXME: Check if the hardware supports it (if possible ;)

0 comments on commit 914e708

Please sign in to comment.