video: we all love hardcode for sure
long live magic numbers
This commit is contained in:
parent
3d152a274f
commit
31138435e7
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue