Fixed a bug with the letterbox calculation on linux.