bugfix: [#27348] blenderplayer showing a different viewport size in 2.57b
[blender.git] / 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(