Use whole screen for backdrops.

Cut off some parts instead of showing black borders.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/qt-trunk@10939 4a71c877-e1ca-e34f-864e-861f7616d084
master
Christian Ohm 2010-06-07 15:11:55 +00:00 committed by Git SVN Gateway
parent b1ac31d5fd
commit 78071fa294
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ void screen_Upload(const char *newBackDropBmp, BOOL preview)
float tx = 1, ty = 1;
const float aspect = screenWidth / (float)screenHeight, backdropAspect = 4 / (float)3;
if (aspect > backdropAspect)
if (aspect < backdropAspect)
{
int offset = (screenWidth - screenHeight * backdropAspect) / 2;
x1 += offset;