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-861f7616d084master
parent
b1ac31d5fd
commit
78071fa294
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue