video: we all love hardcode for sure

long live magic numbers
This commit is contained in:
feos-tas 2016-07-15 15:42:37 +00:00
parent 3d152a274f
commit 31138435e7
2 changed files with 2 additions and 2 deletions

View File

@ -246,7 +246,7 @@ void recalculateBestFitRect(int width, int height)
double screen_width = VNSWID_NU(xres);
double screen_height = FSettings.TotalScanlines();
if (eoptions & EO_TVASPECT)
screen_width = ceil(screen_height * (screen_width / 256) * (tvAspectX / tvAspectY));
screen_width = ceil(screen_height * (screen_width / xres) * (tvAspectX / tvAspectY));
int center_x = width / 2;
int center_y = height / 2;

View File

@ -344,7 +344,7 @@ void CalcWindowSize(RECT *al)
double screen_width = VNSWID_NU(xres);
double screen_height = FSettings.TotalScanlines();
if (eoptions & EO_TVASPECT)
screen_width = ceil(screen_height * (screen_width / 256) * (tvAspectX / tvAspectY));
screen_width = ceil(screen_height * (screen_width / xres) * (tvAspectX / tvAspectY));
al->left = 0;
al->top = 0;