fix MinGW-lowend dsound

This commit is contained in:
Wengier
2022-05-09 16:43:00 -04:00
parent 2d1f7516ea
commit 644d36a169
4 changed files with 3 additions and 4 deletions

Binary file not shown.

View File

@@ -20,9 +20,6 @@
/* MinGW32 special defines */
#if defined(__MINGW32__)
#include <stdint.h>
#if !defined(__MINGW64_VERSION_MAJOR)
#define DSOUND_SUPPORT 0
#endif
//#define snprintf _snprintf
//#define vsnprintf _vsnprintf
#else

View File

@@ -35,6 +35,8 @@
#define NOBITMAP
#include <mmreg.h>
#include <winerror.h>
static DWORD WINAPI fluid_dsound_audio_run(LPVOID lpParameter);
static char* fluid_win32_error(HRESULT hr);

View File

@@ -602,7 +602,7 @@ wchar_t CompositionFontName[LF_FACESIZE];
int SDL_IM_Composition() {
#ifdef ENABLE_IM_EVENT
#define IME_END_CR_WAIT 50
return IM_Context.bCompos||end_ticks&&(GetTickCount()-end_ticks<IME_END_CR_WAIT) ? 1 : 0;
return IM_Context.bCompos||(end_ticks&&GetTickCount()-end_ticks<IME_END_CR_WAIT) ? 1 : 0;
#else
return 0;
#endif