ソースを参照

Minor fix to win32 game config parsing.

Steve Grenier 13 年 前
コミット
9637404bd3
1 ファイル変更2 行追加1 行削除
  1. 2 1
      gameplay/src/PlatformWin32.cpp

+ 2 - 1
gameplay/src/PlatformWin32.cpp

@@ -459,7 +459,7 @@ Platform* Platform::create(Game* game)
     LPCTSTR windowClass = L"gameplay";
     LPCTSTR windowClass = L"gameplay";
     std::wstring windowName;
     std::wstring windowName;
     bool fullscreen = false;
     bool fullscreen = false;
-
+    
     // Read window settings from config
     // Read window settings from config
     Properties* config = game->getConfig()->getNamespace("window", true);
     Properties* config = game->getConfig()->getNamespace("window", true);
     if (config)
     if (config)
@@ -471,6 +471,7 @@ Platform* Platform::create(Game* game)
             int len = MultiByteToWideChar(CP_ACP, 0, title, -1, NULL, 0);
             int len = MultiByteToWideChar(CP_ACP, 0, title, -1, NULL, 0);
             wchar_t* wtitle = new wchar_t[len];
             wchar_t* wtitle = new wchar_t[len];
             MultiByteToWideChar(CP_ACP, 0, title, -1, wtitle, len);
             MultiByteToWideChar(CP_ACP, 0, title, -1, wtitle, len);
+            windowName = wtitle;
             SAFE_DELETE_ARRAY(wtitle);
             SAFE_DELETE_ARRAY(wtitle);
         }
         }