[cstdstring] demise Format, replacing with StringUtils::Format
[vuplus_xbmc] / xbmc / windowing / WinSystem.cpp
index 57d6f22..def3543 100644 (file)
@@ -23,6 +23,7 @@
 #include "settings/DisplaySettings.h"
 #include "settings/lib/Setting.h"
 #include "settings/Settings.h"
+#include "utils/StringUtils.h"
 
 using namespace std;
 
@@ -68,7 +69,7 @@ void CWinSystemBase::UpdateDesktopResolution(RESOLUTION_INFO& newRes, int screen
   newRes.iHeight = height;
   newRes.iScreenWidth = width;
   newRes.iScreenHeight = height;
-  newRes.strMode.Format("%dx%d", width, height);
+  newRes.strMode = StringUtils::Format("%dx%d", width, height);
   if (refreshRate > 1)
     newRes.strMode.AppendFormat("@ %.2f", refreshRate);
   if (dwFlags & D3DPRESENTFLAG_INTERLACED)
@@ -78,7 +79,7 @@ void CWinSystemBase::UpdateDesktopResolution(RESOLUTION_INFO& newRes, int screen
   if (dwFlags & D3DPRESENTFLAG_MODE3DSBS)
     newRes.strMode += "sbs";
   if (screen > 0)
-    newRes.strMode.Format("%s #%d", newRes.strMode, screen + 1);
+    newRes.strMode = StringUtils::Format("%s #%d", newRes.strMode.c_str(), screen + 1);
   if (refreshRate > 1)
     newRes.strMode += " - Full Screen";
 }