no message

This commit is contained in:
BADIM-PC\Vadim 2017-11-06 10:35:50 +03:00
parent 688458f902
commit 021fcafcd1
1 changed files with 3 additions and 1 deletions

View File

@ -955,7 +955,9 @@ static void calcTextureRect(SDL_Rect* rect)
rect->x = (rect->w - discreteWidth) / 2;
rect->y = rect->w > rect->h ? (rect->h - discreteHeight) / 2 : 0;
rect->y = rect->w > rect->h
? (rect->h - discreteHeight) / 2
: (TIC80_FULLWIDTH-TIC80_WIDTH)/2*discreteWidth/TIC80_WIDTH;
rect->w = discreteWidth;
rect->h = discreteHeight;