Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Sep 30, 2024
1 parent b2b7ed7 commit 3b51088
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
Binary file modified res/DRFNPRNT.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/doomretro.wad
Binary file not shown.
9 changes: 4 additions & 5 deletions src/c_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -1709,13 +1709,12 @@ void C_Drawer(void)
do
{
char *temp = M_SubString(console[i].string, 0, wrap);
int width;
int width = indent;

if (stringtype == warningstring || stringtype == playerwarningstring)
width = indent + C_TextWidth(temp, true, true);
if (stringtype == warningstring || stringtype == playerwarningstring || !indent)
width += C_TextWidth(temp, true, true);
else
width = (indent ? indent + C_TextWidth(strrchr(temp, '\t') + 1, true, true) :
C_TextWidth(temp, true, true));
width += C_TextWidth(strrchr(temp, '\t') + 1, true, true);

free(temp);

Expand Down
2 changes: 1 addition & 1 deletion src/i_winmusic.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ bool I_Windows_InitMusic(void)
MMRESULT mmr;

if ((mmr = midiStreamOpen(&hMidiStream, &MidiDevice, (DWORD)1, (DWORD_PTR)&MidiStreamProc,
(DWORD_PTR)NULL, CALLBACK_FUNCTION)) != MMSYSERR_NOERROR)
(DWORD_PTR)0, CALLBACK_FUNCTION)) != MMSYSERR_NOERROR)
{
MidiErrorMessage(mmr);
return false;
Expand Down

0 comments on commit 3b51088

Please sign in to comment.