From: James Turner Date: Wed, 25 May 2011 11:18:07 +0000 (+0100) Subject: Unfortunately, the view code relies on resize being called each frame ... bah. Fixes... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1b4e5e1b91cbb14a1693027821b2b6098c4637fd;p=flightgear.git Unfortunately, the view code relies on resize being called each frame ... bah. Fixes startup aspect ratio for the moment. --- diff --git a/src/Main/renderer.cxx b/src/Main/renderer.cxx index 72f7b4dad..4edaf2406 100644 --- a/src/Main/renderer.cxx +++ b/src/Main/renderer.cxx @@ -785,12 +785,6 @@ FGRenderer::resize( int width, int height ) { int curWidth = _xsize->getIntValue(), curHeight = _ysize->getIntValue(); - if ((width == curWidth) && (height == curHeight)) { - return; - } - - SG_LOG(SG_GENERAL, SG_INFO, "renderer resized to " << width << "," << height); - _xsize->setIntValue(width); _ysize->setIntValue(height); double aspect = height / (double) width;