1
0
Fork 0

Unfortunately, the view code relies on resize being called each frame ... bah. Fixes startup aspect ratio for the moment.

This commit is contained in:
James Turner 2011-05-25 12:18:07 +01:00
parent 436abe1e62
commit 1b4e5e1b91

View file

@ -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;