Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Oct 13, 2023
1 parent 160ec98 commit d9970bd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 13 additions & 2 deletions src/i_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,7 @@ static void SetVideoMode(const bool createwindow, const bool output)
char *temp1 = commify(width);
char *temp2 = commify(height);

C_Output("The native desktop resolution of %sx%s, with an aspect ratio of %s, is being used.",
C_Output("The native desktop resolution of %sx%s with an aspect ratio of %s is being used.",
temp1, temp2, getaspectratio(width, height));

free(temp1);
Expand Down Expand Up @@ -1494,10 +1494,21 @@ static void SetVideoMode(const bool createwindow, const bool output)
}
}
#if defined(_WIN32)
else if (M_StringCompare(rendererinfo.name, "direct3d11"))
{
if (output)
C_Output("This scaling is done using hardware acceleration with " ITALICS("Direct3D v11.0."));

if (!M_StringCompare(vid_scaleapi, vid_scaleapi_direct3d))
{
vid_scaleapi = vid_scaleapi_direct3d;
M_SaveCVARs();
}
}
else if (M_StringCompare(rendererinfo.name, vid_scaleapi_direct3d))
{
if (output)
C_Output("This scaling is done using hardware acceleration with " ITALICS("Direct3D."));
C_Output("This scaling is done using hardware acceleration with " ITALICS("Direct3D v9.0."));

if (!M_StringCompare(vid_scaleapi, vid_scaleapi_direct3d))
{
Expand Down
2 changes: 1 addition & 1 deletion src/p_spec.h
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ enum
};

#if defined(X11) && defined(AnyKey)
# undef AnyKey
#undef AnyKey
#endif

// define names for the locked door Kind field of the general ceiling
Expand Down

0 comments on commit d9970bd

Please sign in to comment.