bugfix: [#27348] blenderplayer showing a different viewport size in 2.57b
authorDalai Felinto <dfelinto@gmail.com>
Tue, 19 Jul 2011 01:41:45 +0000 (01:41 +0000)
committerDalai Felinto <dfelinto@gmail.com>
Tue, 19 Jul 2011 01:41:45 +0000 (01:41 +0000)
I believe this bug was there since we (me) moved the game settings to scene->gm
Since I was here I added support for x/y non square aspect pixels (i.e. anamorphic)
we were already using it for videotexture so I don't know why we were not here.

Tested in OSX, but it should be working in all OSs.

source/gameengine/Converter/BL_BlenderDataConversion.cpp

index af1144576635553b52d9697d50d379ad64b75a7d..7b9c5d4b4d6c93c931db8c226b4ecf03665d636e 100644 (file)
@@ -1976,8 +1976,8 @@ void BL_ConvertBlenderObjects(struct Main* maggie,
                        frame_type = RAS_FrameSettings::e_frame_scale;
                }
                
-               aspect_width = blenderscene->gm.xsch;
-               aspect_height = blenderscene->gm.ysch;
+               aspect_width = blenderscene->r.xsch*blenderscene->r.xasp;
+               aspect_height = blenderscene->r.ysch*blenderscene->r.yasp;
        }
        
        RAS_FrameSettings frame_settings(