mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 10:48:18 +08:00
fix MinGW-lowend dsound
This commit is contained in:
Binary file not shown.
@@ -20,9 +20,6 @@
|
|||||||
/* MinGW32 special defines */
|
/* MinGW32 special defines */
|
||||||
#if defined(__MINGW32__)
|
#if defined(__MINGW32__)
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#if !defined(__MINGW64_VERSION_MAJOR)
|
|
||||||
#define DSOUND_SUPPORT 0
|
|
||||||
#endif
|
|
||||||
//#define snprintf _snprintf
|
//#define snprintf _snprintf
|
||||||
//#define vsnprintf _vsnprintf
|
//#define vsnprintf _vsnprintf
|
||||||
#else
|
#else
|
||||||
|
@@ -35,6 +35,8 @@
|
|||||||
#define NOBITMAP
|
#define NOBITMAP
|
||||||
#include <mmreg.h>
|
#include <mmreg.h>
|
||||||
|
|
||||||
|
#include <winerror.h>
|
||||||
|
|
||||||
static DWORD WINAPI fluid_dsound_audio_run(LPVOID lpParameter);
|
static DWORD WINAPI fluid_dsound_audio_run(LPVOID lpParameter);
|
||||||
|
|
||||||
static char* fluid_win32_error(HRESULT hr);
|
static char* fluid_win32_error(HRESULT hr);
|
||||||
|
@@ -602,7 +602,7 @@ wchar_t CompositionFontName[LF_FACESIZE];
|
|||||||
int SDL_IM_Composition() {
|
int SDL_IM_Composition() {
|
||||||
#ifdef ENABLE_IM_EVENT
|
#ifdef ENABLE_IM_EVENT
|
||||||
#define IME_END_CR_WAIT 50
|
#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
|
#else
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user