mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-23 03:52:12 -04:00
fix automap center after aspect ratio change (#1534)
This commit is contained in:
parent
3239194e32
commit
d7b7ed9a68
11
src/am_map.c
11
src/am_map.c
@ -604,11 +604,18 @@ static void AM_initScreenSize(void)
|
|||||||
|
|
||||||
void AM_ResetScreenSize(void)
|
void AM_ResetScreenSize(void)
|
||||||
{
|
{
|
||||||
AM_saveScaleAndLoc();
|
int old_h = f_h;
|
||||||
|
|
||||||
AM_initScreenSize();
|
AM_initScreenSize();
|
||||||
|
|
||||||
AM_restoreScaleAndLoc();
|
if (f_h != old_h)
|
||||||
|
{
|
||||||
|
// Change the scaling multipliers
|
||||||
|
scale_mtof = FixedDiv(f_w << FRACBITS, m_w);
|
||||||
|
scale_ftom = FixedDiv(FRACUNIT, scale_mtof);
|
||||||
|
}
|
||||||
|
|
||||||
|
AM_activateNewScale();
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user