diff --git a/templates/lua-template-runtime/frameworks/runtime-src/proj.ios_mac/mac/SimulatorApp.mm b/templates/lua-template-runtime/frameworks/runtime-src/proj.ios_mac/mac/SimulatorApp.mm index f682d4bd0d..e3da120bb2 100644 --- a/templates/lua-template-runtime/frameworks/runtime-src/proj.ios_mac/mac/SimulatorApp.mm +++ b/templates/lua-template-runtime/frameworks/runtime-src/proj.ios_mac/mac/SimulatorApp.mm @@ -128,7 +128,7 @@ void createSimulator(const char* viewName, float width, float height,bool isLand { float tmpvalue =width; width = height; - height = width; + height = tmpvalue; } [g_nsAppDelegate createSimulator:[NSString stringWithUTF8String:viewName] viewWidth:width viewHeight:height factor:frameZoomFactor]; diff --git a/templates/lua-template-runtime/frameworks/runtime-src/proj.win32/SimulatorWindow.cpp b/templates/lua-template-runtime/frameworks/runtime-src/proj.win32/SimulatorWindow.cpp index 647b5432d9..8abd405c48 100644 --- a/templates/lua-template-runtime/frameworks/runtime-src/proj.win32/SimulatorWindow.cpp +++ b/templates/lua-template-runtime/frameworks/runtime-src/proj.win32/SimulatorWindow.cpp @@ -312,7 +312,7 @@ void createSimulator(const char* viewName, float width, float height, bool isLan { float tmpvalue =width; width = height; - height = width; + height = tmpvalue; } g_eglView = GLView::createWithRect(viewName,Rect(0,0,width,height),frameZoomFactor); diff --git a/templates/lua-template-runtime/runtime/config.json b/templates/lua-template-runtime/runtime/config.json index a137c0513b..59412228bf 100644 --- a/templates/lua-template-runtime/runtime/config.json +++ b/templates/lua-template-runtime/runtime/config.json @@ -1,6 +1,6 @@ { "version":"v3-lua-runtime-1.1.1", - "zip_file_size":"20853321", + "zip_file_size":"20854899", "repo_name":"cocos-runtime-bin", "repo_parent":"https://github.com/chukong/" }