From 021fcafcd1e1d83cba32edd0a7e895bd88cb1eb2 Mon Sep 17 00:00:00 2001 From: "BADIM-PC\\Vadim" Date: Mon, 6 Nov 2017 10:35:50 +0300 Subject: [PATCH] no message --- src/studio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/studio.c b/src/studio.c index 34bc411..dd01c24 100644 --- a/src/studio.c +++ b/src/studio.c @@ -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;