Fix viewport flickering

Dominik Bayerl 2010-09-19 17:39:00 +02:00
parent d42c6c5b5b
commit 88946a8f10
1 changed files with 1 additions and 1 deletions

View File

@ -1159,7 +1159,7 @@ float C4Viewport::GetZoomByViewRange(int32_t size_x, int32_t size_y) const
{
// set zoom such that both size_x and size_y are guarantueed to fit into the viewport range
// determine whether zoom is to be calculated by x or by y
bool zoom_by_y;
bool zoom_by_y = false;
if (size_x && size_y)
{
zoom_by_y = (size_y * ViewWdt > size_x * ViewHgt);