Merge branch 'master' into texture_rework
This commit is contained in:
commit
0eb68177ca
13 changed files with 41 additions and 23 deletions
|
|
@ -390,7 +390,9 @@ bool SetTextureParms(F2DDrawer * drawer, DrawParms *parms, FGameTexture *img, do
|
|||
double srcwidth = img->GetDisplayWidth();
|
||||
double srcheight = img->GetDisplayHeight();
|
||||
int autoaspect = parms->fsscalemode;
|
||||
aspect = autoaspect == 0 || (srcwidth == 320 && srcheight == 200) || (srcwidth == 640 && srcheight == 400)? 1.333 : srcwidth / srcheight;
|
||||
if (srcheight == 200) aspect = srcwidth / 240.;
|
||||
else if (srcheight == 400) aspect = srcwidth / 480;
|
||||
else aspect = srcwidth / srcheight;
|
||||
parms->x = parms->y = 0;
|
||||
parms->keepratio = true;
|
||||
auto screenratio = ActiveRatio(GetWidth(), GetHeight());
|
||||
|
|
|
|||
|
|
@ -720,6 +720,7 @@ void C_SetDefaultKeys(const char* baseconfig)
|
|||
ReadBindings(lump, true);
|
||||
}
|
||||
|
||||
lastlump = 0;
|
||||
while ((lump = fileSystem.FindLump("DEFBINDS", &lastlump)) != -1)
|
||||
{
|
||||
ReadBindings(lump, false);
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ static inline bool IsSeperator (int c)
|
|||
if (c == '/')
|
||||
return true;
|
||||
#ifdef _WIN32
|
||||
if (c == '\\' || c == ':')
|
||||
if (c == '\\')
|
||||
return true;
|
||||
#endif
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue