From 98adb4ffda2b6598bed7e42314cd5d6b52f07820 Mon Sep 17 00:00:00 2001 From: Vladislav Khorev Date: Mon, 4 Feb 2013 07:44:34 +0000 Subject: [PATCH] vertical screen --- jni/main_code.cpp | 7 +++---- windows/SalmonTemplate/Template/main.cpp | 7 +++++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/jni/main_code.cpp b/jni/main_code.cpp index 47ad130..66e4f8d 100644 --- a/jni/main_code.cpp +++ b/jni/main_code.cpp @@ -88,10 +88,9 @@ void TMyApplication::InnerInit() ResourceManager->FlexModelManager.LoadModelFromXml("tube5.xml"); FlexModel = ResourceManager->FlexModelManager.InstanciateModel("pit.xml"); - //FlexModel.ScaleModel(0.03f); - //FlexModel.MoveModel(vec3(0, -1.2f, -3.5f)); - //FlexModel.ScaleModel(0.3f); - FlexModel.MoveModel(vec3(0, -36.f, -105.f)); + + //FlexModel.MoveModel(vec3(0, -36.f, -105.f)); //Landscape screen + FlexModel.MoveModel(vec3(0, -36.f, -105.f)); //Portrait screen FlexModel.RefreshBuffer(); TubeModelArr.resize(4); diff --git a/windows/SalmonTemplate/Template/main.cpp b/windows/SalmonTemplate/Template/main.cpp index 1eb1c2b..35c38e9 100644 --- a/windows/SalmonTemplate/Template/main.cpp +++ b/windows/SalmonTemplate/Template/main.cpp @@ -8,8 +8,11 @@ int APIENTRY WinMain(HINSTANCE hCurrentInst, HINSTANCE hPreviousInst, //Create application TMyApplication Application; - Application.Width = 480; - Application.Height = 320; + //Application.Width = 480; + //Application.Height = 320; + + Application.Width = 320; + Application.Height = 480; //Start application return MainLoop(Application);