Magnify: Fix build on GCC5 (-Wambiguous-else).

This commit is contained in:
Augustin Cavalier 2017-12-24 12:23:50 -05:00
parent 726fb6c441
commit 0d4fd77ef9

View File

@ -970,11 +970,12 @@ TWindow::SetPixelSize(bool plus)
} else {
pixelSize = fPixelSize / 2;
if (pixelSize < 16)
if (pixelSize < 16) {
if (fPixelSize > 16)
pixelSize = (fPixelSize + 16) / 2;
else
pixelSize = fPixelSize - 1;
}
}
SetPixelSize(pixelSize);