Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiangreffrath committed Jan 3, 2024
2 parents e80707e + 22510a8 commit 383984c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions man/INSTALL.template
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ are needed:
* The IWAD file “chex.wad”, from the Chex Quest CD.

* The dehacked patch “chex.deh”, which can be found here:
https://www.doomworld.com/idgames/utils/exe_edit/patches/chexdeh
(utils/exe_edit/patches/chexdeh.zip in your nearest /idgames mirror)
https://www.doomworld.com/idgames/themes/chex/chexdeh
(themes/chex/chexdeh.zip in your nearest /idgames mirror)

Copy these files into a directory together and use the `-iwad` command
line parameter to specify the Chex Quest IWAD file:
Expand Down
2 changes: 1 addition & 1 deletion src/doom/d_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,7 @@ static void LoadIwadDeh(void)
"The dehacked file is required in order to emulate\n"
"chex.exe correctly. It can be found in your nearest\n"
"/idgames repository mirror at:\n\n"
" utils/exe_edit/patches/chexdeh.zip");
" themes/chex/chexdeh.zip");
}

if (!DEH_LoadFile(chex_deh))
Expand Down
12 changes: 11 additions & 1 deletion src/i_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1116,10 +1116,20 @@ void I_InitWindowIcon(void)

static void SetScaleFactor(int factor)
{
int height;

Check warning on line 1119 in src/i_video.c

View workflow job for this annotation

GitHub Actions / cpp-linter (clang)

src/i_video.c:1119:9 [cppcoreguidelines-init-variables]

variable 'height' is not initialized

// Pick 320x200 or 320x240, depending on aspect ratio correct
if (aspect_ratio_correct)
{
height = SCREENHEIGHT_4_3;
}
else
{
height = SCREENHEIGHT;
}

window_width = factor * SCREENWIDTH;
window_height = factor * actualheight;
window_height = factor * height;
fullscreen = false;
}

Expand Down

0 comments on commit 383984c

Please sign in to comment.