mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
fix MinGW-lowend dsound
This commit is contained in:
Binary file not shown.
@@ -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
|
||||
|
@@ -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);
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user