Revision: 1547
          http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=1547&view=rev
Author:   rorthomas
Date:     2010-12-13 06:30:36 +0000 (Mon, 13 Dec 2010)

Log Message:
-----------
fixed some AS problem and viewport ratio problem under linux

Modified Paths:
--------------
    trunk/source/main/RigsOfRods.cpp
    trunk/source/main/RoRFrameListener.cpp
    trunk/source/main/as_ogre.cpp

Modified: trunk/source/main/RigsOfRods.cpp
===================================================================
--- trunk/source/main/RigsOfRods.cpp    2010-12-11 12:04:43 UTC (rev 1546)
+++ trunk/source/main/RigsOfRods.cpp    2010-12-13 06:30:36 UTC (rev 1547)
@@ -303,9 +303,6 @@
        vp = mWindow->addViewport(mCamera);
        vp->setBackgroundColour(ColourValue(0,0,0));
 
-       // Alter the camera aspect ratio to match the viewport
-       mCamera->setAspectRatio(
-               Real(vp->getActualWidth()) / Real(vp->getActualHeight()));
 
        // Set default mipmap level (NB some APIs ignore this)
        TextureManager::getSingleton().setDefaultNumMipmaps(5);

Modified: trunk/source/main/RoRFrameListener.cpp
===================================================================
--- trunk/source/main/RoRFrameListener.cpp      2010-12-11 12:04:43 UTC (rev 
1546)
+++ trunk/source/main/RoRFrameListener.cpp      2010-12-13 06:30:36 UTC (rev 
1547)
@@ -7540,13 +7540,6 @@
                return;
        LogManager::getSingleton().logMessage("*** windowResized");
 
-       if(initialized && mCamera)
-       {
-               Viewport *vp = mCamera->getViewport();
-               if(vp)
-                       mCamera->setAspectRatio(Real(vp->getActualWidth()) / 
Real(vp->getActualHeight()));
-       }
-
        // Update mouse screen width/height
        unsigned int width, height, depth;
        int left, top;
@@ -7932,4 +7925,4 @@
        res = net_quality_changed;
        pthread_mutex_unlock(&mutex_data);
        return res;
-}
\ No newline at end of file
+}

Modified: trunk/source/main/as_ogre.cpp
===================================================================
--- trunk/source/main/as_ogre.cpp       2010-12-11 12:04:43 UTC (rev 1546)
+++ trunk/source/main/as_ogre.cpp       2010-12-13 06:30:36 UTC (rev 1547)
@@ -60,7 +60,6 @@
        r = engine->RegisterObjectProperty("Vector3", "float x", 
offsetof(Ogre::Vector3, x)); assert( r >= 0 );
        r = engine->RegisterObjectProperty("Vector3", "float y", 
offsetof(Ogre::Vector3, y)); assert( r >= 0 );
        r = engine->RegisterObjectProperty("Vector3", "float z", 
offsetof(Ogre::Vector3, z)); assert( r >= 0 );
-       r = engine->RegisterObjectProperty("Vector3", "float x", 
offsetof(Ogre::Vector3, x)); assert( r >= 0 );
 
 
        // Register the object methods


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
_______________________________________________
Rigsofrods-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel

Reply via email to