Procházet zdrojové kódy

Minor fix to win32 game config parsing.

Steve Grenier před 13 roky
rodič
revize
9637404bd3
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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";
     std::wstring windowName;
     bool fullscreen = false;
-
+    
     // Read window settings from config
     Properties* config = game->getConfig()->getNamespace("window", true);
     if (config)
@@ -471,6 +471,7 @@ Platform* Platform::create(Game* game)
             int len = MultiByteToWideChar(CP_ACP, 0, title, -1, NULL, 0);
             wchar_t* wtitle = new wchar_t[len];
             MultiByteToWideChar(CP_ACP, 0, title, -1, wtitle, len);
+            windowName = wtitle;
             SAFE_DELETE_ARRAY(wtitle);
         }